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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
push ebx
mov eax, dword [eax + 0x14]
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0x54]
xor esi, esi
push ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
call fcn.00437840
mov eax, dword [ebx + 0x2c]
add esp, 4
cmp eax, 0x80
jae 0x450a27
mov byte [edi], al
lea eax, [esi + 1]
jmp 0x450a33
push 0
push eax
push edi
call fcn.0046b4d0
add esp, 0xc
movzx eax, al
add edi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
cmp dword [eax + 0x70], esi
jne 0x450a57
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.0046b4d0
add esp, 0xc
add edi, eax
mov dword [ebp - 0x10], edi
mov edx, ebx
movzx ebx, word [edx + 0x30]
mov ecx, dword [edx + 0x28]
mov dword [ebp - 0x18], ebx
lea eax, [ecx + ebx]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 0x74]
lea esi, [ecx + ebx]
cmp esi, dword [eax + 0x3c]
mov dword [ebp - 0x1c], ecx
mov esi, 0
jbe 0x450aa4
push 0x4cc94c
push 0x122ea
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00422430
add esp, 0x14
lea eax, [esi + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x2c]
mov dword [ebp - 4], eax
cmp ebx, eax
jne 0x450adb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x74]
movzx eax, word [eax + 0xe]
cmp ebx, eax
jae 0x450adb
push ebx
push ecx
push edi
call sub.MSVCR110.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0xc
sub ebx, dword [eax + 0x54]
add ebx, edi
mov dword [eax + 0x58], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x28], esi
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], esi
mov edi, dword [eax + 0x74]
xor esi, esi
mov dword [ebp - 0x14], esi
movzx eax, word [edi + 0xe]
mov dword [ebp - 0x30], eax
cdq
xor ebx, ebx
cmp ebx, edx
jg 0x450b14
mov ecx, dword [ebp - 4]
jl 0x450b10
cmp ecx, eax
ja 0x450b14
mov edi, ecx
jmp 0x450b46
movzx ecx, word [edi + 0x10]
mov eax, dword [edi + 0x34]
mov dword [ebp + 8], ecx
mov edi, dword [eax + 0x28]
mov eax, ecx
mov ecx, dword [ebp - 4]
cdq
push 0
sub edi, 4
sub ecx, eax
push edi
sbb ebx, edx
push ebx
push ecx
call fcn.004a95e0
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add eax, edi
cmp eax, dword [ebp - 0x30]
cmovle edi, eax
mov edx, dword [ebp - 0xc]
mov eax, edi
sub eax, dword [edx + 0x54]
mov edx, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x2c]
mov dword [eax + 0x58], ebx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x18]
mov dword [ebp + 8], edi
cmp edi, dword [eax + 0x2c]
jae 0x450b85
mov ebx, dword [ebp - 0xc]
lea eax, [edi + edx]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebx + 0x58], eax
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
cmp ecx, ebx
jbe 0x450bd2
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax + 0x74]
add ecx, 4
cmp ecx, dword [eax + 0x3c]
jbe 0x450bc1
push 0x4cc94c
push 0x12301
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00422430
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + ebx]
bswap ecx
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 4]
sub ecx, edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x1c]
lea ebx, [ebx]
test ebx, ebx
je 0x450c13
mov esi, ebx
cmp edi, ebx
cmovb esi, edi
push esi
push ecx
push edx
call sub.MSVCR110.dll_memcpy
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
sub edi, esi
sub ebx, esi
add edx, esi
add esp, 0xc
add ecx, esi
mov esi, dword [ebp - 0x14]
mov dword [ebp + 8], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
test edi, edi
je 0x450cc1
test esi, esi
je 0x450c73
test byte [esi + 0x1c], 0x20
je 0x450c6a
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]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004a95a0
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
add esp, 0x10
jmp 0x450c73
push esi
call fcn.00468660
add esp, 4
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], 0
push eax
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x450d83
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov eax, dword [eax + 0x14]
mov edx, dword [ecx]
bswap edx
mov ebx, dword [eax + 0x28]
add ecx, 4
sub ebx, 4
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
jmp 0x450ccc
mov eax, dword [ebp - 8]
test eax, eax
jne 0x450d8c
mov edx, dword [ebp - 0x10]
test edi, edi
jne 0x450be0
cmp dword [ebp - 4], 0
jbe 0x450d9b
push 0
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x30], 0
call fcn.004235e0
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov ecx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x34]
mov eax, ecx
bswap eax
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
add esp, 0x14
cmp byte [eax + 0x11], 0
je 0x450d3c
test esi, esi
je 0x450d49
lea edx, [ebp - 0x2c]
push edx
push dword [esi + 4]
push 4
push ecx
push eax
call fcn.00442960
mov eax, dword [ebp - 0x2c]
add esp, 0x14
mov dword [ebp - 8], eax
test esi, esi
je 0x450d49
push esi
call fcn.00444050
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x450d83
mov eax, dword [eax + 0x38]
mov ecx, dword [ebp - 4]
mov dword [eax], 0
mov esi, dword [ebp - 0x14]
lea edx, [eax + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov edi, ecx
mov eax, dword [eax + 0x28]
add eax, 0xfffffffc
cmp eax, ecx
cmovb edi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov dword [ebp + 8], edi
jmp 0x450d8f
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x450d9b
test eax, eax
je 0x450bd2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x450dae
push eax
call fcn.00444050
mov esi, dword [ebp - 0x14]
add esp, 4
test esi, esi
je 0x450dbb
push esi
call fcn.00467790
add esp, 4
mov esi, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret