Function at 0x4140c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5875a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x14], bl
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc4], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xe4], edi
mov eax, dword [edi + 0x34]
mov dword [ebp - 0xd0], eax
test ecx, ecx
jne 0x41412d
pop edi
lea eax, [ecx + 7]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db63a
mov esp, ebp
pop ebp
ret
movzx ecx, word [edi + 0x16]
movzx edx, byte [edi + 0xc]
push esi
lea esi, [edx + ecx]
cmp esi, 2
jae 0x414146
mov dword [ebp - 0xf4], ebx
jmp 0x41417a
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x414155
mov dword [ebp - 0xf4], ebx
jmp 0x414170
cmp eax, esi
jne 0x414169
mov eax, dword [ebp + 0x18]
add esi, 0xfffffffe
add esi, eax
mov dword [ebp - 0xf4], esi
jmp 0x414173
dec eax
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0x18]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xf4]
sub eax, edx
lea edx, [eax + esi]
cmp edx, ecx
jne 0x4141a1
movzx ecx, byte [edi + 9]
add ecx, 8
jmp 0x4141b5
mov eax, dword [edi + 0x40]
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x38]
mov dword [ebp - 0xf8], ecx
mov edi, dword [ecx]
bswap edi
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xf0], edi
nop
mov eax, dword [ebp - 0xd0]
cmp edi, dword [eax + 0x2c]
jbe 0x414203
push 0x551524
push 0xf134
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00411010
add esp, 0x14
mov edi, 0xb
jmp 0x414296
mov eax, dword [eax]
lea ecx, [ebp - 0xac]
push 0
push ecx
push edi
push eax
mov eax, dword [eax + 0xc8]
call eax
mov edi, eax
add esp, 0x10
mov dword [ebp - 0xa8], edi
test edi, edi
jne 0x41429c
mov edx, dword [ebp - 0xac]
mov eax, dword [edx + 8]
mov dword [ebp + esi*4 - 0x24], eax
cmp byte [eax], 0
jne 0x414294
mov ecx, dword [edx + 8]
mov edi, dword [ebp - 0xd8]
cmp edi, dword [ecx + 4]
je 0x414269
mov eax, dword [edx + 4]
cmp edi, 1
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 0xd0]
mov dword [ecx + 0x34], eax
setne al
dec al
mov dword [ecx + 0x48], edx
and al, 0x64
mov dword [ecx + 4], edi
mov byte [ecx + 9], al
push dword [ebp + esi*4 - 0x24]
call fcn.004163d0
mov edi, eax
add esp, 4
mov dword [ebp - 0xa8], edi
test edi, edi
je 0x414294
mov eax, dword [ebp + esi*4 - 0x24]
test eax, eax
je 0x41429c
push eax
call fcn.0042f0a0
add esp, 4
jmp 0x41429c
xor edi, edi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xb4], edi
test edi, edi
jne 0x4154ad
mov eax, dword [ebp + esi*4 - 0x24]
movzx ecx, word [eax + 0x16]
movzx eax, byte [eax + 0xc]
inc eax
add ebx, eax
mov eax, esi
add ebx, ecx
dec esi
mov dword [ebp - 0xb0], ebx
test eax, eax
je 0x414435
mov edi, dword [ebp - 0xe4]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x414326
mov eax, dword [ebp - 0xf4]
movzx ecx, word [edi + 0x1a]
add eax, esi
cmp eax, ecx
jne 0x414326
mov eax, dword [edi + 0x24]
push eax
mov dword [ebp + esi*4 - 0x10], eax
mov edi, dword [eax]
mov eax, dword [ebp - 0xe4]
bswap edi
push eax
mov dword [ebp - 0xd8], edi
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0xf0], edi
call eax
movzx eax, ax
add esp, 8
mov dword [ebp + esi*4 - 0x4c], eax
mov eax, dword [ebp - 0xe4]
mov byte [eax + 0xc], 0
jmp 0x4141d0
mov ecx, dword [ebp - 0xf4]
movzx eax, dl
sub ecx, eax
mov eax, dword [edi + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x18]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
add eax, ecx
push eax
mov dword [ebp + esi*4 - 0x10], eax
push edi
mov ecx, dword [eax]
mov eax, dword [edi + 0x4c]
bswap ecx
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xf0], ecx
call eax
mov edx, dword [ebp - 0xd0]
add esp, 8
movzx edi, ax
mov dword [ebp + esi*4 - 0x4c], edi
test byte [edx + 0x16], 0xc
je 0x4143c4
mov eax, dword [ebp - 0xe4]
mov ebx, dword [ebp + esi*4 - 0x10]
mov ecx, ebx
sub ecx, dword [eax + 0x38]
lea eax, [edi + ecx]
cmp eax, dword [edx + 0x24]
jg 0x4143f5
mov eax, dword [ebp - 0x108]
push edi
add eax, ecx
push ebx
push eax
call fcn.00521b30
mov edx, dword [ebp - 0xe4]
add esp, 0xc
mov eax, dword [ebp - 0x108]
sub eax, dword [edx + 0x38]
add eax, ebx
mov ebx, dword [ebp - 0xb0]
mov dword [ebp + esi*4 - 0x10], eax
jmp 0x4143ca
mov edx, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xf4]
lea eax, [ebp - 0xb4]
push eax
movzx eax, byte [edx + 0xc]
sub ecx, eax
push edi
add ecx, esi
push ecx
push edx
call fcn.0041cd00
mov edi, dword [ebp - 0xd8]
add esp, 0x10
jmp 0x4141d0
push 0x551524
push 0x1058f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00411010
lea eax, [esi*4 + 4]
mov dword [ebp - 0xa8], 0xb
push eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00520ff0
add esp, 0x20
jmp 0x4154c3
mov eax, dword [ebp - 0xd0]
lea esi, [ebx + 3]
and esi, 0xfffffffc
mov eax, dword [eax + 0x20]
lea edi, [esi + esi*2]
add edi, edi
add eax, edi
cdq
push edx
push eax
call fcn.00449f50
add esp, 8
mov dword [ebp - 0xc4], eax
test eax, eax
jne 0x41446f
mov dword [ebp - 0xa8], 7
jmp 0x4154c3
mov ecx, dword [ebp - 0x24]
lea edx, [eax + esi*4]
mov ebx, dword [ebp - 0xe8]
add eax, edi
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], edx
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [ebp - 0x100], eax
movzx eax, byte [ecx + 3]
mov dword [ebp - 0xec], eax
xor eax, eax
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xe0], eax
test ebx, ebx
jle 0x414737
nop word [eax + eax]
shl eax, 2
mov dword [ebp - 0x114], eax
mov ebx, dword [ebp + eax - 0x24]
mov dword [ebp - 0xb0], ebx
movzx eax, word [ebx + 0x18]
mov edi, dword [ebx + 0x38]
mov ecx, eax
movzx esi, word [ebx + 0x12]
mov dword [ebp - 0x110], eax
add esi, edi
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xac], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edi]
cmp al, byte [ecx]
jne 0x4148d0
movzx eax, byte [ebx + 0xc]
movzx ecx, word [ebx + 0x16]
add ecx, eax
mov eax, dword [ebp - 0xcc]
add ecx, ecx
push ecx
push 0
lea eax, [edx + eax*2]
push eax
call fcn.00520ff0
add esp, 0xc
cmp byte [ebx + 0xc], 0
jbe 0x4145c4
movzx edx, word [ebx + 0x1a]
test edx, edx
je 0x414584
mov ebx, dword [ebp - 0x10c]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, bx
movzx ecx, cx
and ecx, eax
mov eax, dword [ebp - 0xcc]
add ecx, edi
mov edi, dword [ebp - 0xc4]
mov dword [edi + eax*4], ecx
inc eax
mov edi, dword [ebp - 0xdc]
mov dword [ebp - 0xcc], eax
sub edx, 1
jne 0x414543
mov ebx, dword [ebp - 0xb0]
mov dword [ebp - 0xac], esi
xor edx, edx
cmp byte [ebx + 0xc], dl
jbe 0x4145c4
mov edi, dword [ebp - 0xcc]
lea ecx, [ebx + 0x24]
mov esi, dword [ebp - 0xc4]
nop word [eax + eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + edi*4], eax
inc edx
movzx eax, byte [ebx + 0xc]
inc edi
cmp edx, eax
jl 0x4145a0
mov esi, dword [ebp - 0xac]
mov dword [ebp - 0xcc], edi
mov edi, dword [ebp - 0xdc]
movzx eax, word [ebx + 0x12]
xor edx, edx
movzx ecx, word [ebx + 0x16]
add eax, edi
lea eax, [eax + ecx*2]
xor ecx, ecx
mov edi, eax
sub edi, esi
inc edi
shr edi, 1
cmp esi, eax
cmova edi, ecx
test edi, edi
je 0x414635
mov ebx, dword [ebp - 0xdc]
nop dword [eax + eax]
mov ax, word [esi]
lea esi, [esi + 2]
mov ch, al
inc edx
mov cl, ah
mov eax, dword [ebp - 0x110]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [ebp - 0xcc]
add ecx, ebx
mov ebx, dword [ebp - 0xc4]
mov dword [ebx + eax*4], ecx
mov ecx, eax
mov ebx, dword [ebp - 0xdc]
inc ecx
mov dword [ebp - 0xcc], ecx
cmp edx, edi
jb 0x4145f0
mov ebx, dword [ebp - 0xb0]
jmp 0x41463b
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 0xe0]
mov dword [ebp + edx - 0xa4], ecx
cmp eax, dword [ebp - 0xfc]
jge 0x41471c
cmp dword [ebp - 0xec], 0
jne 0x41471c
mov esi, dword [ebp - 0xc0]
movzx eax, word [ebp + edx - 0x4c]
mov edi, dword [ebp - 0xd4]
push eax
push dword [ebp + edx - 0x10]
mov word [esi + ecx*2], ax
mov esi, dword [ebp - 0xbc]
add esi, edi
add edi, eax
push esi
mov dword [ebp - 0xd4], edi
call fcn.00521b30
mov eax, dword [ebp - 0x100]
add esp, 0xc
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ebp - 0xc0]
movzx eax, ax
add eax, esi
mov esi, dword [ebp - 0xc4]
mov dword [esi + ecx*4], eax
mov eax, dword [ebp - 0x100]
sub word [edx + ecx*2], ax
cmp byte [ebx + 8], 0
jne 0x4146ea
mov eax, dword [ebx + 0x38]
mov ecx, dword [esi + ecx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xe0]
inc ecx
mov dword [ebp - 0xcc], ecx
jmp 0x414722
cmp word [edx + ecx*2], 4
jae 0x41470d
mov eax, dword [ebp - 0xbc]
mov byte [eax + edi], 0
inc edi
inc word [edx + ecx*2]
cmp word [edx + ecx*2], 4
jb 0x4146f7
mov dword [ebp - 0xd4], edi
mov eax, dword [ebp - 0xe0]
inc ecx
mov dword [ebp - 0xcc], ecx
jmp 0x414722
mov edx, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xe8]
inc eax
mov dword [ebp - 0xe0], eax
cmp eax, ebx
jl 0x4144c0
mov eax, dword [ebp - 0x100]
xor edx, edx
movzx ecx, ax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xb0], edx
mov eax, dword [eax + 0x24]
add eax, 0xfffffff4
add eax, ecx
mov dword [ebp - 0xdc], eax
test ebx, ebx
jle 0x414806
mov ecx, ebx
lea esi, [ebp - 0xa4]
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
nop dword [eax]
nop word [eax + eax]
mov esi, dword [ebp + edx*4 - 0x24]
mov edi, ecx
mov dword [ebp - 0xac], 0
movzx eax, word [esi + 0x14]
sub edi, eax
cmp byte [esi + 0xc], 0
lea eax, [ebp - 0x4c]
lea eax, [eax + edx*4]
mov dword [eax], edi
mov dword [ebp - 0xfc], eax
jbe 0x4147f5
lea ebx, [esi + 0x24]
nop dword [eax]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [ebp - 0xac]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [ebp - 0xac], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x4147b0
mov eax, dword [ebp - 0xfc]
mov edx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xdc]
mov ebx, dword [ebp - 0xe8]
mov dword [eax], edi
inc edx
mov dword [ebp - 0xb0], edx
cmp edx, ebx
jl 0x414780
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd4], 0
mov ecx, ebx
mov dword [ebp - 0xe0], ecx
test ebx, ebx
jle 0x414a7b
mov edx, dword [ebp - 0xcc]
mov edi, 1
mov dword [ebp - 0xbc], edi
xor ebx, ebx
cmp dword [ebp + ebx - 0x4c], eax
jle 0x414929
nop dword [eax]
cmp edi, ecx
jl 0x414862
lea ecx, [edi + 1]
mov dword [ebp - 0xe0], ecx
cmp ecx, 5
jg 0x414a21
mov dword [ebp + ebx - 0x48], 0
mov dword [ebp + ebx - 0x5c], edx
mov esi, dword [ebp + ebx - 0x60]
mov ecx, dword [ebp - 0xc0]
lea edi, [esi - 1]
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x414891
lea eax, [ebp - 0xcc]
push edi
push eax
call fcn.00419f00
mov ecx, dword [ebp - 0xc0]
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
sub dword [ebp + ebx - 0x4c], eax
cmp dword [ebp - 0xec], 0
jne 0x4148ff
cmp esi, dword [ebp - 0xcc]
jge 0x4148fd
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x4148c8
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.00419f00
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4148ff
push 0x551524
push 0x105d0
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00411010
add esp, 0x14
mov dword [ebp - 0xa8], 0xb
jmp 0x415448
xor eax, eax
add dword [ebp + ebx - 0x48], eax
mov eax, dword [ebp - 0xdc]
mov edx, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xe0]
mov dword [ebp + ebx - 0x60], edi
mov edi, dword [ebp - 0xbc]
cmp dword [ebp + ebx - 0x4c], eax
jg 0x414840
cmp dword [ebp + ebx - 0x60], edx
jge 0x4149ce
mov edi, dword [ebp - 0xc0]
nop dword [eax]
mov esi, dword [ebp + ebx - 0x60]
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x414966
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.00419f00
mov edx, dword [ebp - 0xcc]
add esp, 8
movzx eax, ax
movzx ecx, ax
mov eax, dword [ebp + ebx - 0x4c]
add ecx, 2
add eax, ecx
cmp eax, dword [ebp - 0xdc]
jg 0x4149c8
inc esi
mov dword [ebp + ebx - 0x4c], eax
cmp dword [ebp - 0xec], 0
mov dword [ebp + ebx - 0x60], esi
jne 0x4149bc
cmp esi, edx
jge 0x4149ba
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x4149b2
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.00419f00
mov edx, dword [ebp - 0xcc]
add esp, 8
movzx eax, ax
movzx ecx, ax
add ecx, 2
jmp 0x4149bc
xor ecx, ecx
sub dword [ebp + ebx - 0x48], ecx
cmp esi, edx
jl 0x414940
mov edi, dword [ebp - 0xbc]
mov ecx, dword [ebp + ebx - 0x60]
cmp ecx, edx
jl 0x4149e0
mov ecx, edi
mov dword [ebp - 0xe0], ecx
jmp 0x4149fb
cmp dword [ebp - 0xd4], 0
jle 0x4149ef
mov eax, dword [ebp + ebx - 0x64]
jmp 0x4149f1
xor eax, eax
cmp ecx, eax
jle 0x414a4e
mov ecx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0xd4]
inc edi
inc eax
mov dword [ebp - 0xbc], edi
add ebx, 4
mov dword [ebp - 0xd4], eax
cmp eax, ecx
jge 0x414a7b
mov eax, dword [ebp - 0xdc]
jmp 0x414833
push 0x551524
push 0x1063d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00411010
add esp, 0x14
mov dword [ebp - 0xa8], 0xb
jmp 0x415448
push 0x551524
push 0x1065e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00411010
add esp, 0x14
mov dword [ebp - 0xa8], 0xb
jmp 0x415448
lea eax, [ecx - 1]
mov ecx, eax
mov dword [ebp - 0xac], eax
test ecx, ecx
jle 0x414bbc
nop
shl ecx, 2
mov dword [ebp - 0xbc], ecx
mov eax, dword [ebp + ecx - 0x50]
mov edi, dword [ebp + ecx - 0x4c]
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0x60]
sub eax, 4
mov dword [ebp - 0xb0], eax
mov esi, dword [eax + ecx]
mov ecx, dword [ebp - 0xc0]
dec esi
mov eax, esi
sub eax, dword [ebp - 0xec]
inc eax
cmp word [ecx + eax*2], 0
lea ebx, [ecx + eax*2]
jne 0x414ae6
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00419f00
add esp, 8
mov ecx, dword [ebp - 0xc0]
cmp word [ecx + esi*2], 0
jne 0x414afd
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.00419f00
add esp, 8
mov edx, dword [ebp - 0xd4]
test edi, edi
je 0x414b43
cmp dword [ebp + 0x18], 0
jne 0x414b81
mov ecx, dword [ebp - 0xe0]
mov eax, 2
dec ecx
cmp dword [ebp - 0xac], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, edx
sub ecx, eax
mov eax, dword [ebp - 0xc0]
movzx eax, word [eax + esi*2]
sub ecx, eax
movzx eax, word [ebx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x414b81
movzx eax, word [ebx]
mov ecx, 0xfffffffe
add eax, 2
sub ebx, 2
add edi, eax
mov eax, dword [ebp - 0xc0]
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [ebp - 0xbc]
add edx, ecx
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xd4], edx
mov dword [ecx + eax], esi
sub esi, 1
jns 0x414ae0
jmp 0x414b87
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xac]
mov dword [ebp + eax - 0x50], edx
mov edx, dword [ebp - 0xb0]
mov dword [ebp + eax - 0x4c], edi
cmp ecx, 1
jle 0x414ba6
mov eax, dword [eax + edx - 4]
jmp 0x414ba8
xor eax, eax
cmp dword [edx + ecx*4], eax
jle 0x414c24
dec ecx
mov dword [ebp - 0xac], ecx
test ecx, ecx
jg 0x414a90
mov eax, dword [ebp - 0x24]
xor esi, esi
lea ebx, [esi + 1]
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xe0], esi
jle 0x414d66
nop dword [eax]
cmp esi, dword [ebp - 0xe8]
jge 0x414ca1
mov eax, dword [ebp + esi*4 - 0x24]
mov dword [ebp + esi*4 - 0x38], eax
mov dword [ebp + esi*4 - 0x24], 0
mov dword [ebp - 0xac], eax
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x414c55
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x414c55
cmp dword [edx + 0x60], 0
je 0x414c51
push ecx
call fcn.0046ade0
jmp 0x414c7d
push 0x551524
push 0x10688
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00411010
add esp, 0x14
mov dword [ebp - 0xa8], 0xb
jmp 0x415448
xor edi, edi
jmp 0x414c82
mov edi, dword [edx + 0x28]
mov dword [ebp - 0xa8], edi
test edi, edi
jne 0x414c88
mov eax, dword [edx + 0x94]
push ecx
cmp eax, dword [edx + 0x98]
jbe 0x414c78
call fcn.0042b000
jmp 0x414c7d
call fcn.0042c1a0
add esp, 4
mov edi, eax
mov dword [ebp - 0xa8], edi
inc dword [ebp - 0xb8]
mov dword [ebp - 0xb4], edi
test edi, edi
jne 0x415448
jmp 0x414d59
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp - 0xd8]
push 0
cmovne eax, ebx
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0xd0]
call fcn.004120b0
mov edi, eax
add esp, 0x14
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xb4], edi
test edi, edi
jne 0x415448
push dword [ebp - 0xb0]
mov edi, dword [ebp - 0xac]
push edi
call fcn.0047ad70
mov ecx, dword [ebp - 0xd0]
add esp, 8
inc dword [ebp - 0xb8]
mov eax, dword [ebp - 0xcc]
mov dword [ebp + esi*4 - 0x38], edi
cmp byte [ecx + 0x11], 0
mov dword [ebp + esi*4 - 0xa4], eax
je 0x414d4d
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp - 0xe4]
push dword [eax + 4]
push 5
push dword [edi + 4]
push ecx
call fcn.0042dd70
mov eax, dword [ebp - 0xb4]
add esp, 0x14
mov dword [ebp - 0xa8], eax
test eax, eax
jne 0x415448
mov edi, dword [ebp - 0xf0]
mov dword [ebp - 0xd8], edi
inc esi
cmp esi, dword [ebp - 0xe0]
jl 0x414be0
mov ebx, dword [ebp - 0xb8]
xor ecx, ecx
test ebx, ebx
jle 0x414db7
mov eax, dword [ebp + ecx*4 - 0x38]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [ebp + ecx*4 - 0x8c], edx
mov dword [ebp + ecx*4 - 0x74], edx
mov ax, word [eax + 0x1c]
mov word [ebp + ecx*2 - 0x10], ax
xor eax, eax
test ecx, ecx
jle 0x414db2
nop word [eax + eax]
cmp dword [ebp + eax*4 - 0x8c], edx
je 0x414f36
inc eax
cmp eax, ecx
jl 0x414da0
inc ecx
cmp ecx, ebx
jl 0x414d72
xor edi, edi
mov dword [ebp - 0xac], edi
test ebx, ebx
jle 0x414e76
nop word [eax + eax]
mov ebx, 1
xor esi, esi
cmp dword [ebp - 0xb8], ebx
jle 0x414e0b
xor edi, edi
mov ecx, dword [ebp + edi - 0x74]
mov edx, edi
lea edi, [ebx*4]
mov eax, dword [ebp + edi - 0x74]
cmp eax, ecx
cmovb esi, ebx
inc ebx
cmp eax, ecx
cmovae edi, edx
cmp ebx, dword [ebp - 0xb8]
jl 0x414de1
mov edi, dword [ebp - 0xac]
mov ebx, dword [ebp + esi*4 - 0x74]
mov dword [ebp + esi*4 - 0x74], 0xffffffff
cmp esi, edi
je 0x414e61
jle 0x414e40
mov eax, dword [ebp - 0xd0]
xor edx, edx
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp + esi*4 - 0x38]
inc ecx
add ecx, esi
push ecx
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], dx
call fcn.0044ce50
add esp, 8
mov eax, dword [ebp + edi*4 - 0x38]
push ebx
mov ecx, dword [eax + 0x48]
mov ax, word [ebp + esi*2 - 0x10]
push ecx
mov word [ecx + 0x1c], ax
call fcn.0044ce50
mov eax, dword [ebp + edi*4 - 0x38]
add esp, 8
mov dword [eax + 4], ebx
mov ebx, dword [ebp - 0xb8]
inc edi
mov dword [ebp - 0xac], edi
cmp edi, ebx
jl 0x414dd0
test byte [ebp - 0xb0], 8
mov eax, dword [ebp + ebx*4 - 0x3c]
mov ecx, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x414eb9
mov ecx, dword [ebp - 0xe8]
cmp ecx, ebx
je 0x414eb9
cmp ebx, ecx
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x38]
cmovle eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp + ebx*4 - 0x3c]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov edi, dword [ebp - 0xd0]
cmp byte [edi + 0x11], 0
je 0x4150dd
mov esi, dword [ebp - 0x38]
xor ebx, ebx
mov dword [ebp - 0xf8], 0
movzx eax, byte [esi + 0xc]
movzx ecx, word [esi + 0x16]
mov edx, dword [esi + 0x38]
add ecx, eax
mov eax, dword [edi + 0x24]
xor edi, edi
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0xcc], ebx
jle 0x4150e2
xor eax, eax
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xc4]
mov ecx, dword [ecx + edi*4]
mov dword [ebp - 0xb0], ecx
cmp edi, dword [ebp - 0xac]
jne 0x414f9f
inc ebx
cmp ebx, dword [ebp - 0xb8]
jge 0x414f63
mov edx, dword [ebp + ebx*4 - 0x38]
jmp 0x414f67
push 0x551524
push 0x106d2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00411010
add esp, 0x14
mov dword [ebp - 0xa8], 0xb
jmp 0x415448
mov edx, dword [ebp + ebx*4 - 0x24]
movzx eax, byte [edx + 0xc]
movzx ecx, word [edx + 0x16]
mov edx, dword [edx + 0x38]
add ecx, eax
xor eax, eax
mov dword [ebp - 0xbc], edx
cmp dword [ebp - 0xec], eax
sete al
add eax, dword [ebp - 0xac]
add eax, ecx
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xd8]
cmp edi, dword [ebp + eax - 0x60]
jne 0x414fcc
mov eax, dword [ebp - 0xf8]
inc eax
mov dword [ebp - 0xf8], eax
shl eax, 2
cmp dword [ebp - 0xec], 0
mov dword [ebp - 0xd8], eax
mov esi, dword [ebp + eax - 0x38]
je 0x4150c4
cmp ebx, dword [ebp - 0xb8]
jge 0x414ff4
mov eax, dword [esi + 4]
cmp eax, dword [ebp + ebx*4 - 0x8c]
jne 0x414ff4
cmp ecx, edx
jb 0x414ff4
mov eax, dword [ebp - 0xfc]
add eax, edx
cmp ecx, eax
jb 0x4150be
cmp word [ebp - 0x100], 0
jne 0x415029
lea eax, [ebp - 0xb4]
push eax
push dword [esi + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [ebp - 0xd0]
call fcn.0042dd70
mov eax, dword [ebp - 0xb4]
add esp, 0x14
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xc0]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x41504b
lea eax, [ebp - 0xcc]
push edi
push eax
call fcn.00419f00
add esp, 8
movzx eax, ax
cmp ax, word [esi + 0x10]
jbe 0x4150b0
cmp dword [ebp - 0xa8], 0
jne 0x415448
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0xb0]
mov eax, dword [esi + 0x50]
push esi
call eax
movzx eax, word [ebp - 0x68]
add esp, 0xc
cmp eax, dword [ebp - 0x6c]
jae 0x4150be
mov ecx, dword [ebp - 0xb0]
lea eax, [ebp - 0xb4]
push eax
movzx eax, word [ebp - 0x66]
push dword [esi + 4]
push 3
mov eax, dword [eax + ecx - 4]
bswap eax
push eax
push dword [esi + 0x34]
call fcn.0042dd70
mov eax, dword [ebp - 0xb4]
add esp, 0x14
mov dword [ebp - 0xa8], eax
jmp 0x4150b6
mov eax, dword [ebp - 0xa8]
test eax, eax
jne 0x415448
mov eax, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xbc]
inc edi
cmp edi, dword [ebp - 0xcc]
jl 0x414f10
mov ebx, dword [ebp - 0xb8]
mov esi, dword [ebp - 0x38]
jmp 0x4150e8
mov ebx, dword [ebp - 0xb8]
lea eax, [ebx - 1]
xor edi, edi
test eax, eax
jle 0x415260
nop word [eax + eax]
mov eax, dword [ebp + edi*4 - 0x60]
mov edx, dword [ebp - 0xc4]
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [ebp + edi*4 - 0x38]
mov ebx, dword [ebp - 0x104]
add ebx, dword [ebp - 0x108]
mov dword [ebp - 0xfc], edx
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0xf0], ecx
mov ecx, dword [ebp - 0x100]
movzx eax, word [edx + eax*2]
movzx edx, cx
mov ecx, dword [ebp - 0xf0]
add edx, eax
cmp byte [ecx + 8], 0
jne 0x41515a
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x415207
cmp dword [ebp - 0xec], 0
je 0x4151ec
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0xfc]
push dword [eax - 4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [ebp - 0x8c]
mov esi, ebx
mov ecx, dword [ebp - 0x90]
add esp, 0xc
add ebx, 4
test edx, edx
ja 0x4151da
jb 0x41519c
cmp ecx, 0x7f
ja 0x4151ad
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x415207
test edx, edx
ja 0x4151da
jb 0x4151bb
cmp ecx, 0x3fff
ja 0x4151da
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebx + 1], cl
or al, 0x80
shr edx, 7
mov byte [ebx], al
mov eax, 2
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x415207
push edx
push ecx
push ebx
call fcn.0042e420
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x415207
sub esi, 4
cmp eax, 4
jne 0x41520d
mov eax, dword [ebp - 0xe4]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov ecx, dword [ebp - 0xf0]
add dword [ebp - 0x104], edx
lea eax, [ebp - 0xb4]
push eax
push dword [ecx + 4]
mov eax, dword [ebp - 0xf4]
push ebx
push edx
push esi
add eax, edi
push eax
push dword [ebp - 0xe4]
call fcn.004252c0
mov esi, dword [ebp - 0xb4]
add esp, 0x1c
mov dword [ebp - 0xa8], esi
test esi, esi
jne 0x415448
mov ebx, dword [ebp - 0xb8]
inc edi
lea eax, [ebx - 1]
cmp edi, eax
jl 0x415100
mov esi, dword [ebp - 0x38]
mov edi, 1
sub edi, ebx
mov dword [ebp - 0xf8], edi
cmp edi, ebx
jge 0x41534b
mov eax, edi
lea ebx, [ebp - 0x18]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add ebx, ecx
cmp byte [ebx], 0
jne 0x415333
test edi, edi
jns 0x4152a1
mov eax, dword [ebp + ecx*4 - 0xa8]
cmp eax, dword [ebp + ecx*4 - 0x64]
jl 0x415333
test ecx, ecx
jne 0x4152ae
mov esi, dword [ebp - 0x60]
xor eax, eax
xor edx, edx
jmp 0x4152e5
cmp ecx, dword [ebp - 0xe8]
jge 0x4152ca
xor eax, eax
cmp dword [ebp - 0xec], eax
sete al
add eax, dword [ebp + ecx*4 - 0xa8]
jmp 0x4152d0
mov eax, dword [ebp - 0xcc]
mov esi, dword [ebp + ecx*4 - 0x60]
xor edx, edx
cmp dword [ebp - 0xec], edx
sete dl
add edx, dword [ebp + ecx*4 - 0x64]
sub esi, edx
lea edi, [ecx*4]
lea ecx, [ebp - 0xcc]
push ecx
push esi
push edx
push eax
push dword [ebp + edi - 0x38]
call fcn.0041ced0
add esp, 0x14
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xb4], eax
test eax, eax
jne 0x415448
mov eax, dword [ebp + edi - 0x38]
mov cx, word [ebp - 0xdc]
sub cx, word [ebp + edi - 0x4c]
mov edi, dword [ebp - 0xf8]
mov byte [ebx], 1
mov word [eax + 0x14], cx
mov ebx, dword [ebp - 0xb8]
inc edi
mov dword [ebp - 0xf8], edi
cmp edi, ebx
jl 0x415275
mov esi, dword [ebp - 0x38]
cmp dword [ebp + 0x14], 0
je 0x4153b5
mov edi, dword [ebp - 0xe4]
cmp word [edi + 0x16], 0
jne 0x4153b5
movzx eax, byte [edi + 9]
cmp ax, word [esi + 0x14]
ja 0x4153b5
push 0xffffffffffffffff
push esi
call fcn.0041c170
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb4]
push eax
push edi
push dword [ebp - 0x38]
call fcn.0041b780
mov edi, dword [ebp - 0xb4]
add esp, 0x14
mov dword [ebp - 0xa8], edi
test edi, edi
jne 0x415412
mov eax, dword [ebp - 0x38]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004224a0
mov edi, eax
add esp, 0xc
mov dword [ebp - 0xa8], edi
jmp 0x415412
mov ecx, dword [ebp - 0xd0]
cmp byte [ecx + 0x11], 0
je 0x41540c
cmp word [ebp - 0x100], 0
jne 0x41540c
xor esi, esi
test ebx, ebx
jle 0x41540c
mov eax, dword [ebp + esi*4 - 0x38]
lea edx, [ebp - 0xb4]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov eax, dword [eax + 8]
bswap eax
push eax
push ecx
call fcn.0042dd70
mov ecx, dword [ebp - 0xd0]
inc esi
add esp, 0x14
cmp esi, ebx
jl 0x4153d1
mov edi, dword [ebp - 0xb4]
mov dword [ebp - 0xa8], edi
jmp 0x415412
mov edi, dword [ebp - 0xa8]
mov esi, ebx
cmp ebx, dword [ebp - 0xe8]
jge 0x415448
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x24]
test edi, edi
jne 0x415439
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004224a0
add esp, 0xc
mov edi, eax
inc esi
cmp esi, dword [ebp - 0xe8]
jl 0x415420
mov dword [ebp - 0xa8], edi
cmp dword [0x586660], 0
je 0x41549c
mov eax, dword [0x588fe0]
test eax, eax
je 0x415464
push eax
call dword [0x5866bc]
add esp, 4
mov ebx, dword [ebp - 0xc4]
push ebx
call dword [0x586698]
sub dword [0x589098], eax
dec dword [0x5890bc]
push ebx
call dword [0x586690]
mov eax, dword [0x588fe0]
add esp, 8
test eax, eax
je 0x4154c3
push eax
call dword [0x5866c4]
add esp, 4
jmp 0x4154c3
push dword [ebp - 0xc4]
call dword [0x586690]
add esp, 4
jmp 0x4154c3
lea eax, [esi*4 + 4]
push eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00520ff0
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0xe8], ebx
jle 0x415532
nop dword [eax]
mov edx, dword [ebp + ebx*4 - 0x24]
test edx, edx
je 0x415529
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x415520
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004db9e0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x415529
push edx
call fcn.0044cef0
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0xe8]
jl 0x4154d0
xor ebx, ebx
cmp dword [ebp - 0xb8], ebx
jle 0x4155a2
nop dword [eax]
mov edx, dword [ebp + ebx*4 - 0x38]
test edx, edx
je 0x415599
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x415590
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004db9e0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x415599
push edx
call fcn.0044cef0
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0xb8]
jl 0x415540
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa8]
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.004db63a
mov esp, ebp
pop ebp
ret