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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov dword [esp + 8], edx
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov eax, edx
mov ecx, dword [esp + 8]
and eax, 1
push esi
xor esi, esi
mov dword [esp + 0x18], eax
push edi
xor edi, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
cmp ecx, 1
je 0x4524ae
cmp byte [ebx + 0x16], 0
je 0x4524ae
cmp byte [ebx + 0x10], 1
je 0x4524a4
test dl, 2
je 0x4524ae
mov dword [esp + 0x24], 1
jmp 0x4524b2
mov dword [esp + 0x24], esi
test ecx, ecx
jne 0x4524db
push 0x598b4c
push 0xb9f7
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00446b80
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x28]
mov byte [ebx + 0x17], 1
test edx, edx
je 0x4524ed
mov edi, edx
jmp 0x45268d
cmp dword [esp + 0x24], esi
je 0x4525f7
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x45252a
lea edx, [esp + 0x18]
push edx
mov edx, ecx
mov ecx, eax
call fcn.00455bc0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4527e1
cmp dword [esp + 0x18], esi
jne 0x4525f7
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x98]
dec ecx
push 0
cdq
push ecx
push edx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], ecx
call fcn.00526170
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 edi, eax
add esp, 0x14
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x4527e1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4525f7
cmp byte [ebx + 0x10], 1
mov esi, dword [esp + 0x10]
jbe 0x4525c5
mov edx, esi
mov ecx, ebx
call fcn.00452810
mov dword [esp + 0x20], eax
test eax, eax
je 0x4525c1
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.00526170
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x3c]
add esp, 0x10
jmp 0x4525d9
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
mov edx, esi
push ecx
push eax
mov ecx, ebx
call fcn.004512c0
add esp, 8
mov edi, eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4525ef
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 edi, edi
jne 0x4527e1
mov ecx, dword [ebx + 0xcc]
mov esi, dword [esp + 0x10]
movzx eax, byte [ecx + 0x1d]
and eax, 3
push eax
push esi
push dword [ecx + 0x28]
call dword [0x5c17f4]
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jne 0x452652
mov ecx, dword [ebx + 0xcc]
lea eax, [esp + 0x20]
push eax
mov edx, esi
call fcn.0044d190
mov edi, eax
add esp, 4
test edi, edi
jne 0x4527e1
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x452652
mov esi, dword [ebp + 8]
lea edi, [eax + 7]
mov dword [esi], eax
jmp 0x4527e4
mov esi, dword [eax + 4]
mov ecx, dword [ebx + 0xcc]
cmp dword [esi], 0
jne 0x452671
mov edx, dword [esp + 0x10]
push eax
call fcn.0044d220
add esp, 4
mov esi, eax
jmp 0x452680
xor eax, eax
cmp ax, word [esi + 0x1a]
jne 0x45267c
inc dword [ecx + 0xc]
inc word [esi + 0x1a]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov dword [eax], esi
mov eax, dword [esp + 0x1c]
test edi, edi
jne 0x4527e1
cmp dword [esi + 0x10], edi
je 0x4526ab
test eax, eax
jne 0x4526ab
inc dword [ebx + 0xb8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], ebx
cmp ecx, 0x7fffffff
ja 0x45279b
mov eax, dword [0x5c0e24]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp ecx, eax
je 0x45279b
cmp byte [ebx + 0xf], 0
mov edx, dword [esp + 0x1c]
jne 0x452730
cmp dword [ebx + 0x18], ecx
jb 0x452730
test edx, edx
jne 0x452730
mov eax, dword [ebx + 0x3c]
cmp dword [eax], edx
je 0x452730
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x452714
cmp dword [esp + 0x24], edx
jne 0x452714
lea edx, [esp + 0x18]
push edx
mov edx, ecx
mov ecx, eax
call fcn.00455bc0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4527b9
mov edx, dword [esp + 0x18]
mov ecx, esi
inc dword [ebx + 0xbc]
call fcn.004506d0
mov edi, eax
test edi, edi
je 0x452792
jmp 0x4527b9
cmp ecx, dword [ebx + 0x9c]
jbe 0x45273f
mov edi, 0xd
jmp 0x4527b9
test edx, edx
je 0x45277f
mov eax, dword [0x647f50]
test eax, eax
je 0x452752
call eax
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebx + 0x1c]
ja 0x45276b
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x45276b
mov edx, ecx
mov ecx, eax
call fcn.0044ca10
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov ecx, ebx
call fcn.0044f570
mov eax, dword [0x647f54]
test eax, eax
je 0x45277f
call eax
push dword [ebx + 0x98]
push 0
push dword [esi + 4]
call fcn.00525d00
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x598b4c
push 0xba4c
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00446b80
add esp, 0x10
mov edi, 0xb
test byte [esi + 0x18], 2
je 0x4527c8
mov dl, 1
mov ecx, esi
call fcn.0044d050
mov eax, dword [esi + 0x1c]
push 1
dec dword [eax + 0xc]
mov eax, dword [esi + 0x1c]
push dword [esi]
push dword [eax + 0x28]
call dword [0x5c17f8]
add esp, 0xc
mov esi, dword [ebp + 8]
cmp dword [ebx + 0x78], 0
jne 0x4527fd
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x4527fd
mov ecx, ebx
call fcn.0044fc30
mov eax, edi
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret