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

Disassembly:
sub esp, 0x38
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
push edi
mov edi, dword [esp + 0x4c]
xor esi, esi
push ebp
mov dword [esp + 0x20], esi
mov eax, dword [edi + 0x14]
mov dword [esp + 0x24], eax
mov ebx, dword [eax + 0x54]
call fcn.004370b0
mov eax, dword [ebp + 0x2c]
add esp, 4
cmp eax, 0x80
jae 0x4517a9
mov byte [ebx], al
lea eax, [esi + 1]
jmp 0x4517b5
push 0
push eax
push ebx
call fcn.0046e690
add esp, 0xc
movzx eax, al
add ebx, eax
mov dword [esp + 0x10], ebx
cmp dword [edi + 0x70], esi
jne 0x4517da
push dword [esp + 0x58]
push dword [esp + 0x58]
push ebx
call fcn.0046e690
add esp, 0xc
add ebx, eax
mov dword [esp + 0x10], ebx
mov edx, ebp
mov edi, dword [edx + 0x28]
movzx ebp, word [edx + 0x30]
mov eax, dword [edx + 0x74]
mov dword [esp + 0x24], edi
lea ecx, [edi + ebp]
cmp ecx, dword [eax + 0x3c]
jbe 0x45181d
push 0x4d6684
push 0x120dc
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00420250
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov ecx, dword [edx + 0x2c]
mov dword [esp + 0x18], ecx
cmp ebp, ecx
jne 0x451858
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x74]
movzx eax, word [eax + 0xe]
cmp ebp, eax
jae 0x451858
push ebp
push edi
push ebx
call fcn.004ac060
mov eax, dword [esp + 0x2c]
add esp, 0xc
sub ebp, dword [eax + 0x54]
add ebp, ebx
pop edi
mov dword [eax + 0x58], ebp
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov eax, dword [edx + 0x14]
xor ebx, ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
xor esi, esi
mov eax, dword [eax]
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], esi
mov eax, dword [eax + 0x74]
mov dword [esp + 0x4c], eax
movzx eax, word [eax + 0xe]
mov dword [esp + 0x3c], eax
cdq
cmp ebx, edx
ja 0x451899
jb 0x451895
cmp ecx, eax
ja 0x451899
mov ebx, ecx
jmp 0x4518ca
mov eax, dword [esp + 0x4c]
push 0
movzx ebx, word [eax + 0x10]
mov eax, dword [eax + 0x34]
mov edi, dword [eax + 0x28]
mov eax, ebx
cdq
sub edi, 4
sub ecx, eax
mov eax, esi
push edi
sbb eax, edx
push eax
push ecx
call fcn.004aa930
mov edi, dword [esp + 0x24]
add eax, ebx
cmp eax, dword [esp + 0x3c]
cmovle ebx, eax
mov edx, dword [esp + 0x20]
mov eax, ebx
mov dword [esp + 0x28], ebx
sub eax, dword [edx + 0x54]
mov edx, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0x58], ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
cmp ebx, dword [eax + 0x2c]
jae 0x451916
mov edi, dword [esp + 0x20]
lea eax, [ebx + edx]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
add eax, 4
mov dword [edi + 0x58], eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x50]
cmp ecx, ebp
jbe 0x451966
mov eax, dword [eax + 0x74]
lea ecx, [ebp + 4]
add ecx, edi
cmp ecx, dword [eax + 0x3c]
jbe 0x451952
push 0x4d6684
push 0x120f3
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00420250
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + ebp]
bswap ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
sub ecx, ebx
mov dword [esp + 0x18], ecx
lea esp, [esp]
test ebp, ebp
je 0x45199c
cmp ebx, ebp
mov esi, ebp
cmovb esi, ebx
push esi
push edi
push edx
call fcn.004ac060
add dword [esp + 0x1c], esi
sub ebx, esi
sub ebp, esi
mov dword [esp + 0x34], ebx
add esp, 0xc
add edi, esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x24], edi
test ebx, ebx
je 0x451a50
test esi, esi
je 0x4519fa
test byte [esi + 0x1c], 0x20
je 0x4519f1
mov edx, dword [esi + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [esi + 0x10], eax
mov edi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], esi
push dword [esi + 4]
mov ecx, dword [esi + 0x18]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004aa8f0
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [esp + 0x38]
add esp, 0x10
jmp 0x4519fa
push esi
call fcn.0046a550
add esp, 4
push 2
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
mov eax, dword [esp + 0x48]
push dword [esp + 0x38]
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, dword [esp + 0x24]
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x451b3b
mov eax, dword [esp + 0x50]
mov edi, dword [esi + 4]
mov eax, dword [eax + 0x14]
mov ecx, dword [edi]
add edi, 4
bswap ecx
mov dword [esp + 0x30], ecx
mov ebp, dword [eax + 0x28]
mov dword [esp + 0x24], edi
sub ebp, 4
jmp 0x451a5c
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x451b3b
test ebx, ebx
je 0x451a69
mov edx, dword [esp + 0x10]
jmp 0x451970
cmp dword [esp + 0x18], 0
jbe 0x451b56
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x44]
push 0
push 0
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0
push eax
push esi
call fcn.004212d0
mov edi, dword [esp + 0x48]
mov ecx, eax
mov edx, dword [esp + 0x58]
add esp, 0x14
mov eax, edx
mov dword [esp + 0x1c], ecx
bswap eax
mov dword [edi], eax
mov al, byte [esi + 0x11]
mov edi, dword [esp + 0x24]
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
test eax, eax
je 0x451afc
cmp byte [esp + 0x4c], 0
je 0x451aed
lea ecx, [esp + 0x38]
push ecx
push dword [eax + 4]
push 4
push edx
push esi
call fcn.00442bf0
mov esi, dword [esp + 0x4c]
add esp, 0x14
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x20]
push dword [eax + 0x48]
call fcn.00469790
mov ecx, dword [esp + 0x20]
add esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x451b35
mov eax, dword [eax + 0x38]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [eax], 0
lea edx, [eax + 4]
mov eax, dword [esi + 0x28]
mov esi, dword [esp + 0x14]
add eax, 0xfffffffc
cmp eax, ebx
mov dword [esp + 0x10], edx
cmovb ebx, eax
mov dword [esp + 0x28], ebx
jmp 0x451b4a
mov esi, dword [esp + 0x14]
jmp 0x451b46
cmp dword [esp + 0x18], 0
jbe 0x451b56
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
test ecx, ecx
mov ecx, dword [esp + 0x18]
je 0x451966
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x451b6d
push dword [eax + 0x48]
call fcn.00469790
mov esi, dword [esp + 0x18]
add esp, 4
test esi, esi
je 0x451b7a
push esi
call fcn.00469790
add esp, 4
mov esi, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret