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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov ebx, ecx
xor esi, esi
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push edi
mov edi, edx
mov dword [esp + 0x20], esi
and eax, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
cmp edi, 1
je 0x45a607
cmp byte [ebx + 0x16], 0
je 0x45a607
cmp byte [ebx + 0x10], 1
je 0x45a600
test cl, 2
je 0x45a607
mov edx, 1
jmp 0x45a609
xor edx, edx
mov dword [esp + 0x24], edx
test edi, edi
jne 0x45a634
push 0x51877c
push 0xb74e
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0044eab0
add esp, 0x10
lea eax, [edi + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x28]
mov byte [ebx + 0x17], 1
test ecx, ecx
je 0x45a649
mov esi, ecx
mov ecx, dword [ebp + 8]
jmp 0x45a7c1
test edx, edx
je 0x45a755
mov ecx, dword [ebx + 0xd0]
test ecx, ecx
je 0x45a67e
lea eax, [esp + 0x18]
mov edx, edi
push eax
call fcn.0045de20
mov esi, eax
add esp, 4
test esi, esi
jne 0x45a929
cmp dword [esp + 0x18], eax
jne 0x45a755
mov eax, dword [ebx + 0x98]
mov ecx, edi
push 0
dec ecx
cdq
push ecx
push edx
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], ecx
call fcn.004d21d0
mov ecx, dword [ebx + 0x3c]
lea edi, [esp + 0x14]
push edi
mov edi, dword [ebx + 0x98]
mov esi, eax
push edi
mov eax, dword [ecx]
push edx
push esi
push ecx
mov eax, dword [eax + 0x44]
call eax
mov esi, eax
add esp, 0x14
mov dword [esp + 0x2c], esi
test esi, esi
jne 0x45a929
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x45a755
cmp byte [ebx + 0x10], 1
jbe 0x45a723
mov edx, edi
mov ecx, ebx
call fcn.0045a960
mov dword [esp + 0x20], eax
test eax, eax
je 0x45a71f
push dword [esp + 0x14]
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
push 0
push dword [esp + 0x30]
cdq
mov edi, dword [esi]
push edx
push eax
call fcn.004d21d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov edi, dword [esp + 0x10]
jmp 0x45a737
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
mov edx, edi
push ecx
push eax
mov ecx, ebx
call fcn.004593f0
add esp, 8
mov esi, eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x45a74d
mov eax, dword [ebp + 8]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x45a929
mov ecx, dword [ebx + 0xcc]
movzx eax, byte [ecx + 0x1d]
and eax, 3
push eax
push edi
push dword [ecx + 0x28]
call dword [0x52c604]
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jne 0x45a79b
mov ecx, dword [ebx + 0xcc]
lea eax, [esp + 0x20]
push eax
mov edx, edi
call fcn.00455110
mov esi, eax
add esp, 4
test esi, esi
jne 0x45a929
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0xcc]
mov edx, edi
push eax
call fcn.00455200
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x45a7bd
lea esi, [eax + 7]
jmp 0x45a929
mov eax, dword [esp + 0x1c]
test esi, esi
jne 0x45a929
mov ecx, dword [ecx]
mov dword [esp + 0x10], ecx
cmp dword [ecx + 0x10], esi
je 0x45a7e5
test eax, eax
jne 0x45a7e5
inc dword [ebx + 0xb8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ecx + 0x10], ebx
cmp edi, 0x7fffffff
ja 0x45a8d1
mov eax, dword [0x52bc64]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp edi, eax
je 0x45a8d1
cmp byte [ebx + 0xf], 0
mov edx, dword [esp + 0x1c]
jne 0x45a86c
cmp dword [ebx + 0x18], edi
jb 0x45a86c
test edx, edx
jne 0x45a86c
mov eax, dword [ebx + 0x3c]
cmp dword [eax], edx
je 0x45a86c
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x45a852
cmp dword [esp + 0x24], edx
jne 0x45a852
lea ecx, [esp + 0x18]
mov edx, edi
push ecx
mov ecx, eax
call fcn.0045de20
mov ecx, dword [esp + 0x14]
mov esi, eax
add esp, 4
test esi, esi
jne 0x45a8f3
mov edx, dword [esp + 0x18]
inc dword [ebx + 0xbc]
call fcn.004587d0
mov esi, eax
test esi, esi
je 0x45a8c8
jmp 0x45a8ef
cmp edi, dword [ebx + 0x9c]
jbe 0x45a87b
mov esi, 0xd
jmp 0x45a8f3
test edx, edx
je 0x45a8b5
mov eax, dword [0x53b010]
test eax, eax
je 0x45a88a
call eax
cmp edi, dword [ebx + 0x1c]
ja 0x45a89d
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x45a89d
mov edx, edi
call fcn.00454990
mov edx, edi
mov ecx, ebx
call fcn.00457650
mov eax, dword [0x53b014]
test eax, eax
je 0x45a8b1
call eax
mov ecx, dword [esp + 0x10]
push dword [ebx + 0x98]
push 0
push dword [ecx + 4]
call fcn.004ce8d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x51877c
push 0xb79e
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0044eab0
add esp, 0x10
mov esi, 0xb
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x18], 2
je 0x45a900
mov dl, 1
call fcn.00454fc0
mov eax, dword [ecx + 0x1c]
dec dword [eax + 0xc]
cmp dword [ecx + 0x14], 1
jne 0x45a916
mov eax, dword [ecx + 0x1c]
mov dword [eax + 0x2c], 0
mov eax, dword [ecx + 0x1c]
push 1
push dword [ecx]
push dword [eax + 0x28]
call dword [0x52c608]
add esp, 0xc
cmp dword [ebx + 0x78], 0
jne 0x45a942
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x45a942
mov ecx, ebx
call fcn.00457d10
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret