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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x559940]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], ebx
xor ecx, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
mov esi, edx
mov dword [esp + 0x1c], ecx
mov eax, dword [edi + 0xc]
mov dword [esp + 0x18], eax
cmp ebx, 2
jae 0x420905
push 0x54b514
push 0x100a4
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x420918
mov eax, dword [esi + 0x48]
inc word [eax + 0x1e]
mov eax, dword [eax + 0xc]
inc dword [eax + 0xc]
jmp 0x420923
mov edx, ebx
mov ecx, edi
call fcn.0041b3a0
mov esi, eax
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 4
mov eax, dword [ecx + 0x14]
je 0x420952
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x18]
jb 0x420952
cmp dword [eax + 0x60], 0
je 0x420948
call fcn.00414010
jmp 0x42097a
mov dword [esp + 0x20], 0
jmp 0x42098c
mov ebx, dword [eax + 0x28]
test ebx, ebx
jne 0x420d4a
mov edx, dword [ecx + 0x14]
mov eax, dword [eax + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x420975
call fcn.00415cd0
jmp 0x42097a
call fcn.00415c50
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x420d4a
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x38]
mov eax, dword [ecx + 0x24]
bswap eax
mov dword [esp + 0x24], eax
inc eax
bswap eax
mov dword [ecx + 0x24], eax
test byte [edi + 0x16], 4
je 0x420a67
test esi, esi
jne 0x4209f2
mov eax, dword [edi]
lea ecx, [esp + 0x28]
push esi
push ecx
push ebx
push eax
mov eax, dword [eax + 0xc8]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x420e0f
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
mov esi, dword [ecx + 8]
cmp ebx, dword [esi + 4]
je 0x4209f2
mov eax, dword [ecx + 4]
mov dword [esi + 0x38], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x34], edi
mov dword [esi + 4], ebx
mov byte [esi + 9], 0
mov ecx, dword [esi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x420a1d
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x420a1d
cmp dword [edx + 0x60], 0
je 0x420a13
call fcn.00414010
jmp 0x420a42
mov dword [esp + 0x20], 0
jmp 0x420a54
mov ebx, dword [edx + 0x28]
test ebx, ebx
jne 0x420d4a
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x420a3d
call fcn.00415cd0
jmp 0x420a42
call fcn.00415c50
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x420d4a
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x34]
push dword [eax + 0x20]
push 0
push dword [esi + 0x38]
call fcn.004f7f30
add esp, 0xc
cmp byte [edi + 0x11], 0
je 0x420a8e
lea eax, [esp + 0x20]
mov edx, ebx
push eax
push 0
push 2
mov ecx, edi
call fcn.00419f80
mov ebx, dword [esp + 0x2c]
add esp, 0xc
test ebx, ebx
jne 0x420d4a
cmp dword [esp + 0x24], 0
je 0x420c85
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push 0
push edx
mov eax, dword [eax + 0x38]
mov ecx, dword [eax + 0x20]
mov eax, dword [edi]
bswap ecx
push ecx
push eax
mov eax, dword [eax + 0xc8]
mov dword [esp + 0x2c], ecx
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x420d4a
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edi, dword [edx + 8]
cmp ecx, dword [edi + 4]
je 0x420afb
mov eax, dword [edx + 4]
cmp ecx, 1
mov dword [edi + 0x38], eax
setne al
mov dword [edi + 0x48], edx
mov edx, dword [esp + 0x14]
dec al
and al, 0x64
mov dword [edi + 0x34], edx
mov dword [edi + 4], ecx
mov byte [edi + 9], al
jmp 0x420aff
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x38]
mov ebx, dword [edx + 0x24]
shr ebx, 2
mov ecx, dword [eax + 4]
bswap ecx
lea eax, [ebx - 2]
mov dword [esp + 0x20], ecx
cmp ecx, eax
jbe 0x420b44
push 0x54b514
push 0x100d9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
add esp, 0x14
mov dword [esp + 0xc], edi
mov ebx, 0xb
jmp 0x420d4c
lea eax, [ebx - 8]
mov dword [esp + 0xc], edi
cmp ecx, eax
jae 0x420c81
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov ebx, dword [ecx + 0x14]
je 0x420b74
mov eax, dword [ebx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x420b74
cmp dword [ebx + 0x60], 0
je 0x420bb3
call fcn.00414010
jmp 0x420ba1
mov ebx, dword [ebx + 0x28]
test ebx, ebx
je 0x420b84
mov dword [esp + 0xc], edi
jmp 0x420d4c
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x420b9c
call fcn.00415cd0
jmp 0x420ba1
call fcn.00415c50
mov ebx, eax
mov dword [esp + 0xc], edi
test ebx, ebx
jne 0x420d4c
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [edi + 0x38]
lea ecx, [ebx + 1]
bswap ecx
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [esp + 0x10]
bswap ecx
mov dword [eax + ebx*4 + 8], ecx
test esi, esi
je 0x420bff
test byte [edx + 0x16], 4
jne 0x420bff
mov ecx, dword [esi + 0x48]
mov ebx, dword [ecx + 0x14]
cmp byte [ebx + 0xc], 0
jne 0x420bff
movzx eax, word [ecx + 0x1c]
test al, 2
je 0x420bff
cmp dword [ebx + 0x60], 0
jne 0x420bff
and eax, 0xfffb
or eax, 0x10
mov word [ecx + 0x1c], ax
mov ecx, dword [edx + 0x3c]
xor ebx, ebx
mov dword [esp + 0xc], edi
test ecx, ecx
jne 0x420c52
mov eax, dword [edx + 0x2c]
push ecx
push 0x200
mov dword [esp + 0x20], eax
call fcn.004051e0
mov ecx, eax
add esp, 8
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x420c6c
push 0x1fc
add ecx, 4
push ebx
push ecx
call fcn.004f7f30
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], edi
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 0x3c], ecx
mov eax, dword [esp + 0x10]
cmp eax, dword [ecx]
ja 0x420d4c
mov edx, eax
call fcn.0040f0c0
mov ebx, eax
jmp 0x420d4c
mov eax, dword [esp + 0x14]
mov ebx, 7
mov dword [esp + 0xc], edi
mov dword [eax + 0x3c], ecx
jmp 0x420d4c
mov edi, dword [esp + 0x14]
test esi, esi
jne 0x420ccd
mov eax, dword [edi]
lea ecx, [esp + 0x20]
push esi
push ecx
push dword [esp + 0x18]
push eax
mov eax, dword [eax + 0xc8]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x420da6
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov esi, dword [edx + 8]
cmp ecx, dword [esi + 4]
je 0x420ccd
mov eax, dword [edx + 4]
mov dword [esi + 0x38], eax
mov dword [esi + 0x48], edx
mov dword [esi + 0x34], edi
mov dword [esi + 4], ecx
mov byte [esi + 9], bl
mov ecx, dword [esi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x420cf2
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x420cf2
cmp dword [edx + 0x60], 0
je 0x420cee
call fcn.00414010
jmp 0x420d19
xor ebx, ebx
jmp 0x420d1f
mov ebx, dword [edx + 0x28]
test ebx, ebx
je 0x420cff
mov edi, dword [esp + 0xc]
jmp 0x420d4c
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x420d14
call fcn.00415cd0
jmp 0x420d19
call fcn.00415c50
mov ebx, eax
test ebx, ebx
jne 0x420cf9
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
bswap ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 0x10]
bswap ecx
mov dword [eax + 4], 0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x38]
mov dword [eax + 0x20], ecx
jmp 0x420d4c
xor edi, edi
test esi, esi
je 0x420da6
mov edx, dword [esi + 0x48]
mov byte [esi], 0
test byte [edx + 0x1c], 0x20
je 0x420d9b
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.004f4a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x420da6
mov ecx, edx
call fcn.0040f8d0
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x420e0f
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x420e08
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.004f4a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.0040f8d0
mov ecx, dword [esp + 0x2c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret