Function at 0x424650
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
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edi
mov esi, dword [edi + 4]
mov dword [esp + 0x10], esi
cmp byte [esi + 0x11], 0
je 0x424c34
mov eax, dword [esi + 8]
test eax, eax
je 0x42469b
nop dword [eax]
and byte [eax + 1], 0xfb
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x424690
cmp byte [edi + 9], 0
mov ebx, dword [edi + 4]
je 0x4246b2
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4246b2
call fcn.004198d0
cmp byte [edi + 9], 0
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + 0x34]
bswap ebx
je 0x4246d0
add dword [edi + 0xc], 0xffffffff
jne 0x4246d0
mov ecx, edi
call fcn.004198b0
mov edi, dword [esp + 0x10]
inc ebx
mov ecx, ebx
mov dword [esp + 0x14], ebx
mov edx, ebx
mov dword [esp + 0xc], ebx
mov eax, ebx
mov esi, ebx
cmp ecx, 2
jae 0x4246ee
xor ecx, ecx
jmp 0x424726
lea esi, [edx - 2]
mov eax, 0xcccccccd
mul dword [edi + 0x24]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x55b1cc]
xor ecx, ecx
sub esi, edx
xor edx, edx
div dword [edi + 0x20]
dec eax
cmp esi, eax
mov eax, dword [esp + 0x14]
sete cl
add esi, 2
add ecx, esi
mov esi, dword [esp + 0xc]
cmp eax, ecx
je 0x424739
mov eax, dword [0x55b1cc]
xor edx, edx
div dword [edi + 0x20]
inc eax
cmp esi, eax
jne 0x42474c
inc ebx
mov eax, ebx
mov ecx, ebx
mov edx, ecx
mov dword [esp + 0x14], eax
mov esi, eax
mov dword [esp + 0xc], eax
jmp 0x4246e5
push 1
lea eax, [esp + 0x24]
mov esi, edi
push ebx
push eax
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.0041fc40
mov edi, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x424cca
cmp dword [esp + 0x20], ebx
je 0x424b4e
mov ecx, dword [esi + 8]
mov byte [esp + 0x14], 0
mov dword [esp + 0x18], 0
test ecx, ecx
je 0x4247a4
push 0
xor edx, edx
call fcn.00419c10
add esp, 4
mov dword [esp + 0xc], eax
jmp 0x4247ac
mov dword [esp + 0xc], 0
mov edx, dword [esp + 0x28]
test edx, edx
je 0x424807
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x424800
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
mov esi, dword [esp + 0x20]
add esp, 0x10
jmp 0x424807
mov ecx, edx
call fcn.0040f8d0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x424cca
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push 0
push ecx
push ebx
push eax
mov eax, dword [eax + 0xc8]
call eax
add esp, 0x10
test eax, eax
jne 0x424cca
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov esi, dword [ecx + 8]
cmp ebx, dword [esi + 4]
je 0x42485d
mov eax, dword [ecx + 4]
cmp ebx, 1
mov dword [esi + 0x38], eax
setne al
mov dword [esi + 0x48], ecx
dec al
mov dword [esi + 0x34], edi
and al, 0x64
mov dword [esi + 4], ebx
mov byte [esi + 9], al
lea eax, [esp + 0x18]
mov edx, ebx
push eax
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0041a190
mov cl, byte [esp + 0x1c]
add esp, 8
mov dword [esp + 0xc], eax
cmp cl, 1
je 0x424ac3
cmp cl, 2
je 0x424ac3
test eax, eax
jne 0x424aea
push eax
push dword [esp + 0x24]
mov edx, esi
mov ecx, edi
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0041d2e0
add esp, 0x10
mov dword [esp + 0xc], eax
test esi, esi
je 0x42490d
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x424902
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
mov edi, dword [esp + 0x20]
add esp, 0x10
jmp 0x424909
mov ecx, edx
call fcn.0040f8d0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x424cca
mov eax, dword [edi]
lea ecx, [esp + 0x28]
push 0
push ecx
push ebx
push eax
mov eax, dword [eax + 0xc8]
call eax
add esp, 0x10
test eax, eax
jne 0x424cca
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + 8]
cmp ebx, dword [esi + 4]
je 0x42495b
mov eax, dword [ecx + 4]
cmp ebx, 1
mov dword [esi + 0x38], eax
setne al
mov dword [esi + 0x48], ecx
dec al
mov dword [esi + 0x34], edi
and al, 0x64
mov dword [esi + 4], ebx
mov byte [esi + 9], al
mov ecx, dword [esi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x424a15
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x424a15
cmp dword [edx + 0x60], 0
je 0x424987
call fcn.00414010
jmp 0x424a3a
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0
push 1
mov edx, ebx
call fcn.00419f80
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jne 0x424aea
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
mov dword [esp + 0x28], eax
je 0x4249db
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4249db
mov ecx, edi
call fcn.004198d0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x424b61
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x424b61
cmp dword [edx + 0x60], 0
je 0x424b57
call fcn.00414010
jmp 0x424b86
mov eax, dword [edx + 0x28]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x424a4a
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x424a35
call fcn.00415cd0
jmp 0x424a3a
call fcn.00415c50
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
test eax, eax
je 0x42498f
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x424aa6
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
mov eax, dword [esp + 0x1c]
add esp, 0x10
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 eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
push 0x54b514
push 0x10ab1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
mov eax, 0xb
add esp, 0x14
mov dword [esp + 0xc], eax
test esi, esi
je 0x424cca
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x424aa6
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov dword [eax + 0x88], edx
mov esi, dword [eax + 0x3c]
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
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x28]
jmp 0x424993
mov dword [esp + 0x10], 0
jmp 0x424b8e
mov eax, dword [edx + 0x28]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x424b99
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x424b81
call fcn.00415cd0
jmp 0x424b86
call fcn.00415c50
mov dword [esp + 0x10], eax
test eax, eax
jne 0x424b99
mov ecx, dword [esp + 0x28]
mov eax, ebx
bswap eax
mov dword [ecx + 0x34], eax
cmp byte [edi + 9], 0
je 0x424bac
add dword [edi + 0xc], 0xffffffff
jne 0x424bac
mov ecx, edi
call fcn.004198b0
cmp dword [esp + 0x10], 0
je 0x424c57
test esi, esi
je 0x424c1e
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x424c17
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
mov eax, dword [esp + 0x20]
add esp, 0x10
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 eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x2c]
mov ecx, esi
push 1
push eax
lea edx, [esp + 0x24]
call fcn.0041fc40
add esp, 0xc
test eax, eax
jne 0x424cca
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
test byte [ebp + 8], 1
mov eax, 0xa
mov edx, 0xd
mov ecx, esi
cmove edx, eax
call fcn.0041b2d0
mov edx, dword [esi + 0x48]
test edx, edx
je 0x424cc2
test byte [edx + 0x1c], 0x20
je 0x424cbb
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 0x424cc2
mov ecx, edx
call fcn.0040f8d0
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret