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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x28], edx
push edi
mov dword [esp + 0x28], esi
mov ebx, dword [esi + 4]
mov dword [esp + 0x18], ebx
cmp byte [ebx + 0x11], 0
je 0x45b9e1
mov eax, dword [ebx + 8]
mov edi, ebx
test eax, eax
je 0x45b69e
and byte [eax + 1], 0xfb
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x45b690
mov edi, dword [esi + 4]
mov cl, byte [esi + 9]
test cl, cl
je 0x45b6b8
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x45b6b8
mov ecx, esi
call fcn.004509e0
mov cl, byte [esi + 9]
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x38]
mov edi, dword [eax + 0x34]
bswap edi
test cl, cl
je 0x45b6d4
add dword [esi + 0xc], 0xffffffff
jne 0x45b6d4
mov ecx, esi
call fcn.004509a0
lea esi, [edi + 1]
mov edi, esi
mov dword [esp + 0x14], esi
cmp edi, 2
jae 0x45b6e6
xor ecx, ecx
jmp 0x45b71a
mov eax, 0xcccccccd
lea esi, [edi - 2]
mul dword [ebx + 0x24]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x5352fc]
xor ecx, ecx
sub esi, edx
xor edx, edx
div dword [ebx + 0x20]
dec eax
cmp esi, eax
sete cl
add esi, 2
add ecx, esi
mov esi, dword [esp + 0x14]
cmp edi, ecx
je 0x45b6d4
mov eax, dword [0x5352fc]
xor edx, edx
div dword [ebx + 0x20]
inc eax
cmp edi, eax
je 0x45b6d4
push 1
lea eax, [esp + 0x24]
mov ecx, ebx
push esi
push eax
lea edx, [esp + 0x1c]
call fcn.00456d40
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x45b7e2
cmp dword [esp + 0x20], edi
je 0x45b979
mov edi, dword [esp + 0x18]
mov byte [esp + 0x1c], al
mov dword [esp + 0x24], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x45b77d
push eax
xor edx, edx
call fcn.00451100
add esp, 4
mov ebx, eax
jmp 0x45b77f
xor ebx, ebx
mov edx, dword [esp + 0x10]
test edx, edx
je 0x45b7de
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x45b7d7
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.00511980
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x24]
add esp, 0x10
mov edi, dword [esp + 0x18]
jmp 0x45b7de
mov ecx, edx
call fcn.00444eb0
test ebx, ebx
je 0x45b7eb
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
mov edx, esi
push 0
push eax
mov ecx, edi
call fcn.00452930
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x45b7e2
lea eax, [esp + 0x24]
mov edx, esi
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.004514c0
mov ebx, eax
add esp, 8
mov al, byte [esp + 0x1c]
cmp al, 1
je 0x45b8f7
cmp al, 2
je 0x45b8f7
test ebx, ebx
jne 0x45b91a
mov edx, dword [esp + 0x10]
mov ecx, edi
push ebx
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x28]
call fcn.004546d0
mov ebx, eax
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45b8b4
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x45b8ad
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.00511980
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x24]
add esp, 0x10
mov edi, dword [esp + 0x18]
jmp 0x45b8b4
mov ecx, edx
call fcn.00444eb0
test ebx, ebx
jne 0x45b7e2
lea eax, [esp + 0x10]
mov edx, esi
push ebx
push eax
mov ecx, edi
call fcn.00452930
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x45b7e2
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x48]
call fcn.0044c100
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x45b97d
mov edx, dword [edi + 0x48]
jmp 0x45b929
push 0x52a07c
push 0x11e27
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043d780
add esp, 0x14
mov ebx, 0xb
mov edx, dword [esp + 0x10]
test edx, edx
je 0x45b7e2
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x45b9d1
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.00511980
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0
push 1
mov edx, esi
call fcn.004513a0
mov ebx, dword [esp + 0x28]
add esp, 0xc
test ebx, ebx
je 0x45b9a9
test edi, edi
je 0x45b7e2
mov edx, dword [edi + 0x48]
jmp 0x45b929
mov ecx, dword [esp + 0x28]
mov edx, 4
push esi
call fcn.0045c210
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45ba0a
test edi, edi
je 0x45b7e2
mov edx, dword [edi + 0x48]
jmp 0x45b929
mov ecx, edx
call fcn.00444eb0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x2c]
mov ecx, ebx
push 1
push eax
lea edx, [esp + 0x1c]
call fcn.00456d40
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x45b7e2
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
test byte [ebp + 8], 1
mov eax, 0xa
mov edx, 0xd
mov ecx, edi
cmove edx, eax
call fcn.00452820
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x45ba2e
call fcn.0044b7b0
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret