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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
mov ebx, dword [edi + 4]
mov dword [esp + 0x18], ebx
cmp edx, dword [ebx + 0x2c]
jbe 0x45bdac
push 0x52a07c
push 0x11eee
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043d780
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
lea ecx, [esp + 0x24]
push 0
push ecx
push edx
push eax
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
test eax, eax
jne 0x45c153
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov esi, dword [edx + 8]
cmp ecx, dword [esi + 4]
je 0x45bdf6
mov eax, dword [edx + 4]
cmp ecx, 1
mov dword [esi + 0x38], eax
setne al
mov dword [esi + 0x48], edx
dec al
mov dword [esi + 0x34], ebx
and al, 0x64
mov dword [esi + 4], ecx
mov byte [esi + 9], al
mov edx, ecx
mov ecx, edi
push 0
call fcn.0045bc80
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
test edi, edi
jne 0x45c0f7
cmp byte [ebx + 0x11], 0
mov eax, dword [ebp + 8]
mov dword [eax], edi
je 0x45c0e1
mov edi, dword [esp + 0x20]
mov cl, byte [edi + 9]
mov ebx, dword [edi + 4]
test cl, cl
je 0x45be46
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x45be46
mov ecx, edi
call fcn.004509e0
mov cl, byte [edi + 9]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax + 0x34]
bswap ebx
test cl, cl
je 0x45be62
add dword [edi + 0xc], 0xffffffff
jne 0x45be62
mov ecx, edi
call fcn.004509a0
cmp dword [esp + 0x1c], ebx
jne 0x45bed7
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.004579c0
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x45bebb
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
add esp, 0x10
jmp 0x45bec2
mov ecx, edx
call fcn.00444eb0
mov edi, dword [esp + 0x14]
test edi, edi
je 0x45c097
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x45bf1f
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
add esp, 0x10
jmp 0x45bf26
mov ecx, edx
call fcn.00444eb0
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push 0
push eax
mov edx, ebx
mov ecx, esi
call fcn.00452930
mov edi, eax
add esp, 8
test edi, edi
jne 0x45c151
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 3
jae 0x45bf79
push 0x52a07c
push 0x108af
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043d780
add esp, 0x14
mov dword [esp + 0x1c], 0xb
jmp 0x45bfa7
mov edi, dword [esp + 0x1c]
mov edx, dword [eax + 0x48]
mov ecx, dword [esi]
push 0
push edi
call fcn.0044c950
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x45bfa7
mov eax, dword [esp + 0x10]
mov ecx, eax
mov dword [eax + 4], edi
call fcn.00454470
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x45bff7
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 + 0x28]
add esp, 0x10
jmp 0x45bffe
mov ecx, edx
call fcn.00444eb0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x45c153
push eax
mov dword [esp + 0x14], eax
mov edx, ebx
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00452930
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x1c]
add esp, 8
mov dword [esp + 0x14], eax
mov ecx, esi
call fcn.004579c0
test esi, esi
je 0x45c086
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x45c07f
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
add esp, 0x10
jmp 0x45c086
mov ecx, edx
call fcn.00444eb0
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x45c151
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov ecx, dword [esp + 0x18]
xor edx, edx
mov eax, dword [0x5352fc]
dec ebx
div dword [ecx + 0x20]
lea esi, [eax + 1]
nop dword [eax]
cmp ebx, esi
je 0x45c0c3
mov edx, ebx
call fcn.00451360
cmp eax, ebx
jne 0x45c0c6
mov ecx, dword [esp + 0x18]
dec ebx
jmp 0x45c0b0
mov ecx, dword [esp + 0x20]
mov edx, 4
push ebx
call fcn.0045c210
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
mov ecx, dword [esi + 0x34]
mov edx, esi
call fcn.00457620
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x45c14a
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
mov edi, dword [esp + 0x20]
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.00444eb0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret