Function at 0x462b70
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 0x462bad
cmp byte [ebx + 0x16], 0
je 0x462bad
cmp byte [ebx + 0x10], 1
je 0x462ba6
test al, 2
je 0x462bad
mov ecx, 1
jmp 0x462baf
xor ecx, ecx
mov dword [esp + 0x1c], ecx
test ebp, ebp
jne 0x462bda
push 0x4f308c
push 0xb75b
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0041e040
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 0x462bed
mov esi, eax
jmp 0x462fd8
test ecx, ecx
je 0x462d8c
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x462c22
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
call fcn.00482630
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x462fd8
cmp dword [esp + 0x10], eax
jne 0x462d8c
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.004bfcf0
push edx
push eax
mov eax, dword [edi + 0x44]
push esi
call eax
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x462fd8
mov edi, dword [esp + 0x34]
mov dword [esp + 0x14], edi
test edi, edi
je 0x462d8c
cmp byte [ebx + 0x10], 1
jbe 0x462cc4
push ebp
push ebx
call fcn.00463650
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x462cbc
push dword [esp + 0x34]
mov eax, dword [ebx + 0x98]
push esi
push dword [esp + 0x20]
cdq
push edx
push eax
call fcn.004bfcf0
push edx
push eax
push dword [ebx + 0x3c]
call fcn.00462a90
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 0x462cf2
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.004c2200
jmp 0x462d2b
movzx eax, word [ebx + 0x8c]
cdq
mov esi, eax
add esi, 0x28
adc edx, 0
push edx
push esi
call fcn.00461c40
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x462d3f
push esi
push 0
push ebp
call fcn.004c2200
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 0x462d6c
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.004bfcf0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov esi, 7
test ebp, ebp
je 0x462d80
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 0x462fd8
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 [0x509084]
add esp, 0xc
test eax, eax
jne 0x462e36
mov edi, dword [ebx + 0xcc]
cmp byte [edi + 0x1d], 2
je 0x462e40
mov eax, dword [edi + 8]
test eax, eax
je 0x462dda
cmp word [eax + 0x1a], 0
jne 0x462dd3
test byte [eax + 0x18], 4
je 0x462dda
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x462dc6
mov dword [edi + 8], eax
test eax, eax
jne 0x462df8
mov eax, dword [edi + 4]
test eax, eax
je 0x462e13
cmp word [eax + 0x1a], 0
je 0x462df8
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x462de8
jmp 0x462e13
push eax
push dword [edi + 0x24]
mov eax, dword [edi + 0x20]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x462e13
cmp esi, 5
jne 0x462fd8
push 2
push ebp
push dword [edi + 0x28]
call dword [0x509084]
xor esi, esi
add esp, 0xc
test eax, eax
mov ecx, 7
cmove esi, ecx
test esi, esi
jne 0x462fd8
mov edx, dword [ebx + 0xcc]
test eax, eax
jne 0x462e54
mov eax, dword [esp + 0x30]
mov esi, 7
mov dword [eax], 0
jmp 0x462fd8
mov ecx, dword [eax + 4]
cmp dword [ecx], 0
jne 0x462e6b
push eax
push ebp
push edx
call fcn.00440d20
add esp, 0xc
mov ecx, eax
jmp 0x462e96
movzx eax, word [ecx + 0x1a]
mov dword [esp + 0x2c], 0
mov edi, eax
cmp word [esp + 0x2c], ax
jne 0x462e87
inc dword [edx + 0xc]
movzx edi, word [ecx + 0x1a]
lea eax, [edi + 1]
mov word [ecx + 0x1a], ax
cmp ebp, 1
jne 0x462e96
mov dword [edx + 0x2c], ecx
mov eax, dword [esp + 0x30]
mov dword [eax], ecx
test ecx, ecx
jne 0x462ea8
lea esi, [ecx + 7]
jmp 0x462fd8
test esi, esi
jne 0x462fd8
mov edi, ecx
mov ecx, dword [esp + 0x1c]
cmp dword [edi + 0x10], esi
je 0x462ecf
test ecx, ecx
jne 0x462ecf
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 0x462fb1
mov eax, dword [0x509110]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp ebp, eax
je 0x462fb1
cmp byte [ebx + 0xf], 0
jne 0x462f50
cmp dword [ebx + 0x18], ebp
jb 0x462f50
test ecx, ecx
jne 0x462f50
mov eax, dword [ebx + 0x3c]
cmp dword [eax], ecx
je 0x462f50
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x462f32
cmp dword [esp + 0x20], ecx
jne 0x462f32
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
call fcn.00482630
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x462fcf
push dword [esp + 0x10]
inc dword [ebx + 0xbc]
push edi
call fcn.004416b0
mov esi, eax
add esp, 8
test esi, esi
je 0x462fa7
jmp 0x462fcf
cmp ebp, dword [ebx + 0x9c]
jbe 0x462f5f
mov esi, 0xd
jmp 0x462fcf
test ecx, ecx
je 0x462f94
mov eax, dword [0x50be40]
test eax, eax
je 0x462f6e
call eax
cmp ebp, dword [ebx + 0x1c]
ja 0x462f7f
push ebp
push dword [ebx + 0x38]
call fcn.0044afe0
add esp, 8
push ebp
push ebx
call fcn.0041ecd0
mov eax, dword [0x50be44]
add esp, 8
test eax, eax
je 0x462f94
call eax
push dword [ebx + 0x98]
push 0
push dword [edi + 4]
call fcn.004c2200
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
push 0x4f308c
push 0xb7ab
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0041e040
add esp, 0x10
mov esi, 0xb
push edi
call fcn.00465520
add esp, 4
cmp dword [ebx + 0x78], 0
jne 0x462ff3
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x462ff3
push ebx
call fcn.0043d640
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