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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov eax, dword [eax + 0x14]
xor esi, esi
push edi
push ebx
mov dword [ebp - 0x14], esi
mov edi, dword [eax + 0x54]
mov dword [ebp - 0x18], eax
call fcn.00532120
mov eax, dword [ebx + 0x2c]
add esp, 4
cmp eax, 0x80
jae 0x54c827
mov byte [edi], al
lea eax, [esi + 1]
jmp 0x54c833
push 0
push eax
push edi
call fcn.00569d60
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 0x54c857
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.00569d60
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 - 0x20], ebx
mov dword [ebp - 0x24], ecx
lea eax, [ecx + ebx]
mov dword [ebp - 0x34], eax
lea esi, [ecx + ebx]
mov eax, dword [edx + 0x74]
cmp esi, dword [eax + 0x3c]
mov esi, 0
jbe 0x54c8a4
push 0x674cf4
push 0x122ea
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0051a330
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 - 8], eax
cmp ebx, eax
jne 0x54c8db
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x74]
movzx eax, word [eax + 0xe]
cmp ebx, eax
jae 0x54c8db
push ebx
push ecx
push edi
call fcn.0060a360
mov eax, dword [ebp - 0x18]
add esp, 0xc
sub ebx, dword [eax + 0x54]
add ebx, edi
mov dword [eax + 0x58], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x14]
xor ebx, ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
xor esi, esi
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov edi, dword [eax + 0x74]
movzx eax, word [edi + 0xe]
mov dword [ebp - 0x38], eax
cdq
cmp ebx, edx
ja 0x54c914
mov ecx, dword [ebp - 8]
jb 0x54c910
cmp ecx, eax
ja 0x54c914
mov edi, ecx
jmp 0x54c946
mov eax, dword [edi + 0x34]
movzx ecx, word [edi + 0x10]
mov dword [ebp - 0x1c], ecx
push 0
mov edi, dword [eax + 0x28]
mov eax, ecx
mov ecx, dword [ebp - 8]
sub edi, 4
cdq
sub ecx, eax
push edi
sbb ebx, edx
push ebx
push ecx
call fcn.00609220
mov edi, dword [ebp - 0x1c]
add eax, edi
cmp eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 8]
cmovle edi, eax
mov edx, dword [ebp - 0x18]
mov eax, edi
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edi
sub eax, dword [edx + 0x54]
mov edx, dword [ebp - 0x10]
add eax, edx
mov dword [ebx + 0x58], eax
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
cmp edi, dword [eax + 0x2c]
jae 0x54c982
mov ecx, dword [ebp - 0x18]
lea eax, [edi + edx]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
add eax, 4
mov dword [ecx + 0x58], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
cmp ecx, ebx
jbe 0x54c9d0
mov eax, dword [eax + 0x74]
mov ecx, dword [ebp - 0x34]
add ecx, 4
cmp ecx, dword [eax + 0x3c]
jbe 0x54c9be
push 0x674cf4
push 0x12301
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0051a330
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 [ebx + eax]
bswap ecx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 8]
nop
sub ecx, edi
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x24]
test ebx, ebx
je 0x54ca06
cmp edi, ebx
mov esi, ebx
cmovb esi, edi
push esi
push ecx
push edx
call fcn.0060a360
mov ecx, dword [ebp - 0x24]
sub edi, esi
add dword [ebp - 0x10], esi
sub ebx, esi
add esp, 0xc
mov dword [ebp - 0x1c], edi
add ecx, esi
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
test edi, edi
je 0x54cac6
test esi, esi
je 0x54ca6e
test byte [esi + 0x1c], 0x20
je 0x54ca65
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.00608a40
mov esi, dword [ebx + 0x48]
mov ecx, esi
push edx
push eax
push edi
call dword [0x659730]
call esi
mov ebx, dword [ebp - 0x20]
add esp, 0x10
mov edi, dword [ebp - 0x1c]
jmp 0x54ca6e
push esi
call fcn.005660b0
add esp, 4
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov eax, dword [ebp - 0x3c]
push dword [ebp - 0x2c]
push eax
mov esi, dword [eax + 0xcc]
mov ecx, esi
call dword [0x659730]
call esi
mov esi, dword [ebp - 0xc]
mov edx, eax
add esp, 0x10
mov dword [ebp - 0x14], edx
test edx, edx
jne 0x54cb91
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
add ecx, 4
bswap eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x14]
mov ebx, dword [eax + 0x28]
sub ebx, 4
mov dword [ebp - 0x20], ebx
jmp 0x54cad1
mov edx, dword [ebp - 0x14]
test edx, edx
jne 0x54cb91
test edi, edi
je 0x54cadd
mov edx, dword [ebp - 0x10]
jmp 0x54c9d8
cmp dword [ebp - 8], 0
jbe 0x54cba3
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x40]
push 0
push 0
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push esi
call fcn.0051b850
mov ebx, dword [ebp - 0x30]
mov edx, eax
mov ecx, dword [ebp - 0x40]
add esp, 0x14
mov eax, ecx
mov dword [ebp - 0x14], edx
bswap eax
mov dword [ebx], eax
mov al, byte [esi + 0x11]
mov ebx, dword [ebp - 0x20]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
test eax, eax
je 0x54cb5d
cmp byte [ebp - 1], 0
je 0x54cb4f
lea edx, [ebp - 0x34]
push edx
push dword [eax + 4]
push 4
push ecx
push esi
call fcn.0053e050
mov esi, dword [ebp - 0x34]
add esp, 0x14
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x18]
push dword [eax + 0x48]
call fcn.00565290
mov edx, dword [ebp - 0x14]
add esp, 4
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x54cb8c
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x30], eax
lea edi, [eax + 4]
mov dword [eax], 0
mov eax, dword [esi + 0x28]
add eax, 0xfffffffc
mov dword [ebp - 0x10], edi
cmp eax, ecx
mov edi, ecx
cmovb edi, eax
mov dword [ebp - 0x1c], edi
mov esi, dword [ebp - 0xc]
jmp 0x54cb98
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x54cba3
test edx, edx
mov edx, dword [ebp - 0x10]
je 0x54c9d0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x54cbb8
push dword [eax + 0x48]
call fcn.00565290
mov esi, dword [ebp - 0xc]
add esp, 4
test esi, esi
je 0x54cbc5
push esi
call fcn.00565290
add esp, 4
mov esi, dword [ebp - 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret