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

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x24]
mov ecx, eax
push ebx
mov ebx, dword [esp + 0x1c]
and ecx, 1
push ebp
mov ebp, dword [esp + 0x24]
push esi
xor esi, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], esi
cmp ebp, 1
je 0x462dbd
cmp byte [ebx + 0x16], 0
je 0x462dbd
cmp byte [ebx + 0x10], 1
je 0x462db6
test al, 2
je 0x462dbd
mov ecx, 1
jmp 0x462dbf
xor ecx, ecx
mov dword [esp + 0x1c], ecx
test ebp, ebp
jne 0x462dea
push 0x4f408c
push 0xb75b
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0041e160
add esp, 0x10
lea eax, [ebp + 0xb]
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [ebx + 0x28]
mov byte [ebx + 0x17], 1
push edi
test eax, eax
je 0x462dfd
mov esi, eax
jmp 0x4631e8
test ecx, ecx
je 0x462f9c
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x462e32
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
call fcn.004825e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4631e8
cmp dword [esp + 0x10], eax
jne 0x462f9c
mov eax, dword [ebx + 0x98]
lea edx, [esp + 0x34]
mov esi, dword [ebx + 0x3c]
lea ecx, [ebp - 1]
push edx
push eax
push 0
cdq
push ecx
push edx
mov dword [esp + 0x48], 0
mov edi, dword [esi]
push eax
mov dword [esp + 0x30], ecx
call fcn.004bfab0
push edx
push eax
mov eax, dword [edi + 0x44]
push esi
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4631e8
mov edi, dword [esp + 0x34]
mov dword [esp + 0x14], edi
test edi, edi
je 0x462f9c
cmp byte [ebx + 0x10], 1
jbe 0x462ed4
push ebp
push ebx
call fcn.00463860
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x462ecc
push dword [esp + 0x34]
mov eax, dword [ebx + 0x98]
push esi
push dword [esp + 0x20]
cdq
push edx
push eax
call fcn.004bfab0
push edx
push eax
push dword [ebx + 0x3c]
call fcn.00462ca0
mov eax, dword [esp + 0x40]
add esp, 0x10
pop edi
pop esi
mov dword [eax], ebp
xor eax, eax
pop ebp
pop ebx
add esp, 0x14
ret
mov edi, dword [esp + 0x34]
mov dword [esp + 0x14], edi
mov ebp, dword [ebx + 0x88]
test ebp, ebp
je 0x462f02
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x88], eax
mov dword [ebp + 0xc], 0
movzx eax, word [ebx + 0x8c]
push eax
push 0
push dword [ebp + 8]
call fcn.004c20c0
jmp 0x462f3b
movzx eax, word [ebx + 0x8c]
cdq
mov esi, eax
add esi, 0x28
adc edx, 0
push edx
push esi
call fcn.00461dd0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x462f4f
push esi
push 0
push ebp
call fcn.004c20c0
lea eax, [ebp + 0x28]
mov dword [ebp + 0x18], 0x10040
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], ebx
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [ebp + 0x14], eax
mov dword [ebp + 4], edi
inc dword [ebx + 0x78]
xor esi, esi
jmp 0x462f7c
push dword [esp + 0x14]
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
push 0
push dword [esp + 0x20]
cdq
mov edi, dword [esi]
push edx
push eax
call fcn.004bfab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov esi, 7
test ebp, ebp
je 0x462f90
mov eax, dword [esp + 0x30]
pop edi
pop esi
mov dword [eax], ebp
xor eax, eax
pop ebp
pop ebx
add esp, 0x14
ret
test esi, esi
jne 0x4631e8
mov ebp, dword [esp + 0x2c]
mov ecx, dword [ebx + 0xcc]
movzx eax, byte [ecx + 0x1d]
and eax, 3
push eax
push ebp
push dword [ecx + 0x28]
call dword [0x50a084]
add esp, 0xc
test eax, eax
jne 0x463046
mov edi, dword [ebx + 0xcc]
cmp byte [edi + 0x1d], 2
je 0x463050
mov eax, dword [edi + 8]
test eax, eax
je 0x462fea
cmp word [eax + 0x1a], 0
jne 0x462fe3
test byte [eax + 0x18], 4
je 0x462fea
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x462fd6
mov dword [edi + 8], eax
test eax, eax
jne 0x463008
mov eax, dword [edi + 4]
test eax, eax
je 0x463023
cmp word [eax + 0x1a], 0
je 0x463008
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x462ff8
jmp 0x463023
push eax
push dword [edi + 0x24]
mov eax, dword [edi + 0x20]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x463023
cmp esi, 5
jne 0x4631e8
push 2
push ebp
push dword [edi + 0x28]
call dword [0x50a084]
xor esi, esi
add esp, 0xc
test eax, eax
mov ecx, 7
cmove esi, ecx
test esi, esi
jne 0x4631e8
mov edx, dword [ebx + 0xcc]
test eax, eax
jne 0x463064
mov eax, dword [esp + 0x30]
mov esi, 7
mov dword [eax], 0
jmp 0x4631e8
mov ecx, dword [eax + 4]
cmp dword [ecx], 0
jne 0x46307b
push eax
push ebp
push edx
call fcn.00440c20
add esp, 0xc
mov ecx, eax
jmp 0x4630a6
movzx eax, word [ecx + 0x1a]
mov dword [esp + 0x2c], 0
mov edi, eax
cmp word [esp + 0x2c], ax
jne 0x463097
inc dword [edx + 0xc]
movzx edi, word [ecx + 0x1a]
lea eax, [edi + 1]
mov word [ecx + 0x1a], ax
cmp ebp, 1
jne 0x4630a6
mov dword [edx + 0x2c], ecx
mov eax, dword [esp + 0x30]
mov dword [eax], ecx
test ecx, ecx
jne 0x4630b8
lea esi, [ecx + 7]
jmp 0x4631e8
test esi, esi
jne 0x4631e8
mov edi, ecx
mov ecx, dword [esp + 0x1c]
cmp dword [edi + 0x10], esi
je 0x4630df
test ecx, ecx
jne 0x4630df
inc dword [ebx + 0xb8]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov dword [edi + 0x10], ebx
cmp ebp, 0x7fffffff
ja 0x4631c1
mov eax, dword [0x50a110]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp ebp, eax
je 0x4631c1
cmp byte [ebx + 0xf], 0
jne 0x463160
cmp dword [ebx + 0x18], ebp
jb 0x463160
test ecx, ecx
jne 0x463160
mov eax, dword [ebx + 0x3c]
cmp dword [eax], ecx
je 0x463160
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x463142
cmp dword [esp + 0x20], ecx
jne 0x463142
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
call fcn.004825e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4631df
push dword [esp + 0x10]
inc dword [ebx + 0xbc]
push edi
call fcn.004415a0
mov esi, eax
add esp, 8
test esi, esi
je 0x4631b7
jmp 0x4631df
cmp ebp, dword [ebx + 0x9c]
jbe 0x46316f
mov esi, 0xd
jmp 0x4631df
test ecx, ecx
je 0x4631a4
mov eax, dword [0x50ce20]
test eax, eax
je 0x46317e
call eax
cmp ebp, dword [ebx + 0x1c]
ja 0x46318f
push ebp
push dword [ebx + 0x38]
call fcn.0044b160
add esp, 8
push ebp
push ebx
call fcn.0041edf0
mov eax, dword [0x50ce24]
add esp, 8
test eax, eax
je 0x4631a4
call eax
push dword [ebx + 0x98]
push 0
push dword [edi + 4]
call fcn.004c20c0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
push 0x4f408c
push 0xb7ab
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0041e160
add esp, 0x10
mov esi, 0xb
push edi
call fcn.00465730
add esp, 4
cmp dword [ebx + 0x78], 0
jne 0x463203
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x463203
push ebx
call fcn.0043d7a0
add esp, 4
mov eax, dword [esp + 0x30]
pop edi
mov dword [eax], 0
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret