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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x535008]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x14]
mov esi, dword [ebx + 0x74]
mov edx, dword [eax + 0x24]
mov eax, 0xaaaaaaab
add edx, edx
mul edx
shr edx, 1
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
nop dword [eax]
cmp dword [esi + 0x14], 0
jge 0x45a8e9
mov ecx, esi
call fcn.004524c0
test eax, eax
jne 0x45aaff
mov edx, dword [esp + 0x10]
mov al, byte [esi + 0xc]
test al, al
jne 0x45a8f9
cmp dword [esi + 0x14], edx
jle 0x45aaff
movsx ecx, byte [ebx + 0x44]
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x45a960
test al, al
je 0x45aaff
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x45a933
cmp eax, ebx
je 0x45a92c
cmp byte [eax], 0
jne 0x45a92c
mov ecx, dword [eax + 0x74]
cmp ecx, dword [ebx + 0x74]
je 0x45aadc
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x45a917
lea edx, [ebx + 0x7c]
mov ecx, esi
call fcn.0045a690
mov edi, eax
test edi, edi
jne 0x45aaff
mov edx, dword [esp + 0x10]
mov byte [ebx + 0x44], 1
mov dword [ebx + 0x46], eax
mov dword [ebx + 0x78], esi
mov esi, dword [ebx + 0x7c]
mov dword [ebx + 0x74], esi
jmp 0x45a8d0
mov edi, dword [ebx + ecx*4 + 0x74]
movzx eax, word [ebx + ecx*2 + 0x46]
mov dword [esp + 0x18], eax
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x45a98e
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x45a98e
cmp dword [edx + 0x60], 0
je 0x45a9c3
call fcn.0044a3e0
jmp 0x45a9b7
mov eax, dword [edx + 0x28]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x45aa65
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x45a9b2
call fcn.0044bea0
jmp 0x45a9b7
call fcn.0044bc80
mov dword [esp + 0xc], eax
test eax, eax
jne 0x45aa65
cmp dword [edi + 0x14], 0
jge 0x45a9dc
mov ecx, edi
call fcn.004524c0
mov dword [esp + 0xc], eax
test eax, eax
jne 0x45aa65
cmp byte [esi + 3], 0
je 0x45aa19
cmp byte [esi + 0xc], 1
jne 0x45aa19
mov ax, word [esi + 0x1c]
cmp ax, word [esi + 0x18]
jne 0x45aa19
cmp dword [edi + 4], 1
je 0x45aa19
movzx eax, word [edi + 0x18]
cmp eax, dword [esp + 0x18]
jne 0x45aa19
lea eax, [esp + 0x24]
mov edx, esi
push eax
mov ecx, edi
call fcn.00458e50
add esp, 4
mov dword [esp + 0xc], eax
jmp 0x45aa65
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 0x20]
call fcn.00445970
movzx ecx, byte [ebx + 3]
mov edx, dword [esp + 0x18]
and ecx, 1
push ecx
xor ecx, ecx
mov dword [esp + 0x24], eax
cmp dword [esp + 0x20], 1
sete cl
push ecx
push eax
mov ecx, edi
call fcn.004591a0
mov dword [esp + 0x18], eax
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45aa5d
mov ecx, eax
call fcn.00445a90
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x48]
mov byte [esi + 0xc], 0
test byte [edx + 0x1c], 0x20
je 0x45aab1
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 0x45aab8
mov ecx, edx
call fcn.00444eb0
mov cl, byte [ebx + 0x44]
mov edi, dword [esp + 0xc]
lea eax, [ecx - 1]
mov byte [ebx + 0x44], al
movsx eax, cl
mov esi, dword [ebx + eax*4 + 0x74]
mov dword [ebx + 0x74], esi
test edi, edi
jne 0x45aaff
mov edx, dword [esp + 0x10]
jmp 0x45a8d0
push 0x52a07c
push 0x11afe
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043d780
add esp, 0x14
mov edi, 0xb
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x45ab0c
call fcn.00445a90
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051023c
mov esp, ebp
pop ebp
ret