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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x54b369
cmp byte [esi], 0
jne 0x54b360
mov dl, byte [esi + 1]
test dl, 2
je 0x54b360
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
mov edi, dword [ebp + 0x14]
cmp ecx, ebx
jne 0x54b302
cmp eax, edi
jne 0x54b304
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp eax, edi
jg 0x54b360
jl 0x54b30c
cmp ecx, ebx
jae 0x54b360
test dl, 8
jne 0x54b3d8
add ecx, 1
adc eax, 0
cmp ecx, ebx
jne 0x54b360
cmp eax, edi
jne 0x54b360
mov eax, dword [ebp + 0x1c]
push 0
push esi
mov dword [eax], 0
call fcn.0054b7e0
add esp, 8
test eax, eax
jne 0x54b357
push esi
call fcn.00532120
add esp, 4
cmp dword [esi + 0x20], ebx
jne 0x54b360
cmp dword [esi + 0x24], edi
jne 0x54b360
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x65
jne 0x54b7d7
mov dword [ebp - 8], 0
jmp 0x54b3c2
mov ecx, dword [edi]
cmp word [ecx + 8], 0xd
ja 0x54b3b7
mov eax, dword [edi + 4]
movzx ebx, word [eax + 8]
mov eax, dword [ecx + 0x10]
mov al, byte [eax]
test al, al
je 0x54b38c
test al, 2
jne 0x54b3b7
or al, 0xff
mov dl, 1
jmp 0x54b391
mov al, 1
or dl, 0xff
mov byte [edi + 0xc], dl
mov byte [edi + 0xd], al
test bl, 4
je 0x54b3a5
mov dword [ebp - 8], 0x593600
jmp 0x54b3be
test bl, 0x39
jne 0x54b3b7
cmp dword [ecx + 0x14], 0
mov dword [ebp - 8], 0x593830
je 0x54b3be
mov dword [ebp - 8], 0x581e30
mov byte [edi + 0xb], 0
push esi
call fcn.00536550
add esp, 4
test eax, eax
je 0x54b3ea
cmp eax, 0x10
jne 0x54b7d7
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [eax], 0xffffffff
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, 1
lea ebx, [esi + 0x74]
sub edx, dword [ebp + 0x18]
mov dword [ebp - 0x24], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
movzx edi, word [ecx + 0x18]
mov ecx, edx
dec edi
mov ebx, edi
mov dword [ebp - 0x1c], edi
sar ebx, cl
cmp dword [ebp - 8], 0
mov word [esi + 0x46], bx
mov esi, dword [ebp - 0xc]
lea eax, [esi + 0x40]
lea ecx, [esi + 0x1a]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
jne 0x54b522
movzx edx, word [ecx]
mov cl, byte [esi + 3]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
mov byte [ebp - 1], cl
nop
mov ax, word [eax + ebx*2]
mov ch, al
mov cl, ah
movzx eax, cx
movzx ecx, dx
and eax, ecx
add eax, dword [esi + 0x44]
cmp byte [ebp - 1], 0
je 0x54b470
cmp byte [eax], 0x80
jb 0x54b46f
mov ecx, dword [esi + 0x3c]
inc eax
cmp eax, ecx
jae 0x54b6e7
cmp byte [eax], 0x80
jae 0x54b461
inc eax
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.0055e4a0
mov ecx, dword [ebp - 0x28]
add esp, 8
mov eax, dword [ebp - 0x2c]
cmp ecx, dword [ebp + 0x14]
jg 0x54b4d8
jl 0x54b491
mov edx, dword [ebp + 0x10]
cmp eax, edx
jae 0x54b4db
lea edx, [ebx + 1]
mov dword [ebp - 0x14], edx
cmp edx, edi
jle 0x54b4f0
or esi, 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x54b73f
mov esi, eax
mov ebx, dword [ebp - 0x10]
movzx eax, word [esi + 0x18]
cmp edx, eax
jl 0x54b669
movzx ecx, byte [esi + 9]
mov eax, dword [esi + 0x38]
mov edx, dword [ecx + eax + 8]
jmp 0x54b681
mov edx, dword [ebp + 0x10]
cmp ecx, dword [ebp + 0x14]
jl 0x54b507
jg 0x54b4e6
cmp eax, edx
jbe 0x54b507
mov edx, dword [ebp - 0x14]
lea edi, [ebx - 1]
cmp edx, edi
jg 0x54b500
mov eax, dword [ebp - 0x1c]
lea ebx, [edi + edx]
mov edx, dword [ebp - 0x20]
sar ebx, 1
jmp 0x54b440
mov esi, 1
jmp 0x54b49e
mov edi, dword [ebp + 8]
mov word [edi + 0x46], bx
cmp byte [esi + 8], 0
jne 0x54b711
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov dword [ebp - 0x14], edx
jmp 0x54b4b9
mov eax, dword [eax]
mov ax, word [eax + ebx*2]
mov ch, al
mov cl, ah
mov eax, dword [ebp - 0x10]
movzx edx, cx
movzx eax, word [eax]
and edx, eax
mov eax, dword [ebp - 0xc]
add edx, dword [esi + 0x44]
movzx eax, byte [eax + 0xb]
movzx ecx, byte [edx]
lea esi, [edx + 1]
cmp ecx, eax
ja 0x54b551
push dword [ebp + 0xc]
push esi
jmp 0x54b574
mov al, byte [esi]
test al, al
js 0x54b58c
and ecx, 0x7f
movzx eax, al
shl ecx, 7
add ecx, eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0xe]
cmp ecx, eax
ja 0x54b58c
push dword [ebp + 0xc]
lea eax, [edx + 2]
push eax
mov esi, dword [ebp - 8]
push ecx
mov ecx, esi
call dword [0x659730]
call esi
add esp, 0xc
mov esi, eax
jmp 0x54b636
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
add edi, 0x20
push edi
movzx eax, byte [ecx + 0xa]
mov esi, dword [ecx + 0x50]
sub edx, eax
push edx
push ecx
mov ecx, esi
call dword [0x659730]
call esi
mov esi, dword [edi]
add esp, 0xc
mov edi, dword [ebp + 8]
cmp esi, 2
jl 0x54b7ae
mov ecx, dword [edi + 0x14]
xor edx, edx
mov eax, esi
div dword [ecx + 0x28]
cmp eax, dword [ecx + 0x30]
ja 0x54b7ae
lea eax, [esi + 0x12]
cdq
push edx
push eax
call fcn.00562690
mov edi, eax
add esp, 8
test edi, edi
je 0x54b799
mov eax, dword [ebp + 8]
push 0
push edi
push esi
push 0
push eax
mov word [eax + 0x46], bx
call fcn.0051ae80
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [edi + esi], xmm0
mov word [edi + esi + 0x10], 0
add esp, 0x14
mov dword [ebp - 0x20], eax
and byte [ecx + 1], 0xfb
test eax, eax
jne 0x54b77d
push eax
push dword [ebp + 0xc]
push edi
push esi
call fcn.00581e50
push edi
mov esi, eax
call fcn.0050dbb0
mov edi, dword [ebp - 0x1c]
add esp, 0x14
test esi, esi
jns 0x54b642
lea edx, [ebx + 1]
mov dword [ebp - 0x14], edx
jmp 0x54b651
jle 0x54b757
mov edx, dword [ebp - 0x14]
lea edi, [ebx - 1]
mov dword [ebp - 0x1c], edi
cmp edx, edi
jg 0x54b4a4
mov esi, dword [ebp - 0xc]
lea ebx, [edi + edx]
mov eax, dword [ebp - 0x18]
sar ebx, 1
jmp 0x54b522
mov eax, dword [ecx]
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx]
movzx ecx, cx
and ecx, eax
mov eax, dword [esi + 0x38]
mov edx, dword [ecx + eax]
mov eax, dword [ebp - 0x14]
mov esi, dword [edi + 0x14]
movzx ecx, ax
mov al, byte [edi + 0x44]
mov word [edi + 0x46], cx
cmp al, 0x13
jge 0x54b733
and byte [edi + 1], 0xf9
xor ebx, ebx
movsx eax, al
mov word [edi + 0x32], bx
lea ebx, [edi + 0x74]
bswap edx
mov word [edi + eax*2 + 0x48], cx
movsx ecx, byte [edi + 0x44]
mov eax, dword [ebx]
mov dword [edi + ecx*4 + 0x78], eax
xor eax, eax
inc byte [edi + 0x44]
mov word [edi + 0x46], ax
movzx eax, byte [edi + 2]
push eax
push edi
push ebx
push edx
push esi
call fcn.00532030
add esp, 0x14
test eax, eax
jne 0x54b7d1
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
jmp 0x54b3f8
push 0x674cf4
push 0x11565
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
or byte [edi + 1], 2
mov dword [edi + 0x20], eax
xor eax, eax
mov word [edi + 0x32], ax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x24], ecx
pop edi
pop esi
mov dword [eax], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x674cf4
push 0x113c3
jmp 0x54b7b8
mov eax, dword [ebp + 0x1c]
mov word [edi + 0x46], bx
mov dword [eax], esi
xor eax, eax
xor ecx, ecx
mov word [edi + 0x32], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], 0
xor eax, eax
mov word [edi + 0x46], bx
cmp byte [ecx + 0xb], al
je 0x54b7d1
push 0x674cf4
push 0x115d0
jmp 0x54b7b8
push edi
call fcn.0050dbb0
mov edi, dword [ebp + 8]
add esp, 4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov word [edi + 0x32], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, 7
mov word [edi + 0x32], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x674cf4
push 0x115b0
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0051a330
add esp, 0x14
mov eax, 0xb
xor ecx, ecx
mov word [edi + 0x32], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret