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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jne 0x54d5d5
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
jne 0x54d5cc
mov dl, byte [ebx + 1]
test dl, 2
je 0x54d5cc
mov ecx, dword [ebx + 0x20]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebx + 0x24]
mov edi, dword [ebp + 0x14]
cmp ecx, esi
jne 0x54d572
cmp eax, edi
jne 0x54d574
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 0x54d5cc
jl 0x54d57c
cmp ecx, esi
jae 0x54d5cc
test dl, 8
jne 0x54d5fe
add ecx, 1
adc eax, 0
cmp ecx, esi
jne 0x54d5cc
cmp eax, edi
jne 0x54d5cc
mov eax, dword [ebp + 0x1c]
push 0
push ebx
mov dword [eax], 0
call fcn.0054d9d0
add esp, 8
test eax, eax
jne 0x54d5c3
push ebx
call fcn.00536820
add esp, 4
cmp dword [ebx + 0x20], esi
jne 0x54d5cc
cmp dword [ebx + 0x24], edi
jne 0x54d5cc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x65
jne 0x54d9c5
mov dword [ebp - 0xc], 0
jmp 0x54d5e8
push ebx
call fcn.0057a990
mov byte [ebx + 0xb], 0
add esp, 4
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ebx
call fcn.0053a8a0
add esp, 4
test eax, eax
je 0x54d610
cmp eax, 0x10
jne 0x54d9c5
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 eax, 1
lea edi, [ebx + 0x74]
sub eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
nop
mov esi, dword [edi]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], esi
movzx ebx, word [esi + 0x18]
dec ebx
mov edi, ebx
mov dword [ebp - 0x14], ebx
sar edi, cl
cmp dword [ebp - 0xc], 0
mov word [eax + 0x46], di
jne 0x54d723
mov cl, byte [esi + 3]
mov byte [ebp - 1], cl
mov eax, dword [esi + 0x40]
movzx edx, word [esi + 0x1a]
mov ax, word [eax + edi*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 0x54d686
cmp byte [eax], 0x80
jb 0x54d685
mov ecx, dword [esi + 0x3c]
inc eax
cmp eax, ecx
jae 0x54d8d2
cmp byte [eax], 0x80
jae 0x54d677
inc eax
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0055e320
mov ecx, dword [ebp - 0x20]
add esp, 8
mov eax, dword [ebp - 0x24]
cmp ecx, dword [ebp + 0x14]
jg 0x54d6e2
jl 0x54d6a7
mov edx, dword [ebp + 0x10]
cmp eax, edx
jae 0x54d6e5
lea edx, [edi + 1]
mov dword [ebp - 8], edx
cmp edx, ebx
jle 0x54d6fa
or esi, 0xffffffff
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x54d92d
mov esi, eax
movzx eax, word [esi + 0x18]
cmp edx, eax
jl 0x54d858
movzx ecx, byte [esi + 9]
mov eax, dword [esi + 0x38]
mov edx, dword [ecx + eax + 8]
jmp 0x54d872
mov edx, dword [ebp + 0x10]
cmp ecx, dword [ebp + 0x14]
jl 0x54d70b
jg 0x54d6f0
cmp eax, edx
jbe 0x54d70b
mov edx, dword [ebp - 8]
lea ebx, [edi - 1]
cmp edx, ebx
jg 0x54d704
lea edi, [ebx + edx]
sar edi, 1
jmp 0x54d64f
mov esi, 1
jmp 0x54d6b4
mov ebx, dword [ebp + 8]
mov word [ebx + 0x46], di
cmp byte [esi + 8], 0
jne 0x54d8fc
mov edx, edi
mov dword [ebp - 8], edx
jmp 0x54d6c6
mov eax, dword [esi + 0x40]
mov ax, word [eax + edi*2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x1a]
movzx ecx, cx
and ecx, eax
movzx eax, byte [esi + 0xb]
add ecx, dword [esi + 0x44]
movzx edx, byte [ecx]
cmp edx, eax
ja 0x54d75a
push dword [ebp + 0xc]
lea eax, [ecx + 1]
push eax
push edx
call dword [ebp - 0xc]
add esp, 0xc
mov esi, eax
jmp 0x54d828
mov al, byte [ecx + 1]
test al, al
js 0x54d789
and edx, 0x7f
movzx eax, al
shl edx, 7
add edx, eax
movzx eax, word [esi + 0xe]
cmp edx, eax
ja 0x54d789
push dword [ebp + 0xc]
lea eax, [ecx + 2]
push eax
push edx
call dword [ebp - 0xc]
add esp, 0xc
mov esi, eax
jmp 0x54d828
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
movzx eax, byte [edx + 0xa]
lea esi, [ebx + 0x20]
sub ecx, eax
mov eax, dword [edx + 0x50]
push esi
push ecx
push edx
call eax
mov esi, dword [esi]
add esp, 0xc
cmp esi, 2
jl 0x54d99c
mov ecx, dword [ebx + 0x14]
xor edx, edx
mov eax, esi
div dword [ecx + 0x24]
cmp eax, dword [ecx + 0x2c]
ja 0x54d99c
lea eax, [esi + 0x12]
cdq
push edx
push eax
call fcn.00561bf0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x54d987
mov eax, dword [ebp + 8]
push 0
push ebx
push esi
push 0
push eax
mov word [eax + 0x46], di
call fcn.00522810
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebx + esi], xmm0
mov word [ebx + esi + 0x10], 0
add esp, 0x14
mov dword [ebp - 0x1c], eax
and byte [ecx + 1], 0xfb
test eax, eax
jne 0x54d96b
push eax
push dword [ebp + 0xc]
push ebx
push esi
call fcn.0057d1d0
push ebx
mov esi, eax
call fcn.0051ba00
mov ebx, dword [ebp - 0x14]
add esp, 0x14
test esi, esi
jns 0x54d834
lea edx, [edi + 1]
mov dword [ebp - 8], edx
jmp 0x54d843
jle 0x54d945
mov edx, dword [ebp - 8]
lea ebx, [edi - 1]
mov dword [ebp - 0x14], ebx
cmp edx, ebx
jg 0x54d6b4
mov esi, dword [ebp - 0x10]
lea edi, [ebx + edx]
sar edi, 1
jmp 0x54d723
mov eax, dword [esi + 0x40]
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [esi + 0x38]
mov edx, dword [ecx + eax]
mov al, byte [ebx + 0x44]
mov ecx, dword [ebp - 8]
mov esi, dword [ebx + 0x14]
mov word [ebx + 0x46], cx
bswap edx
cmp al, 0x13
jge 0x54d91e
and byte [ebx + 1], 0xf9
xor edi, edi
movsx eax, al
mov word [ebx + 0x32], di
lea edi, [ebx + 0x74]
mov word [ebx + eax*2 + 0x48], cx
movsx ecx, byte [ebx + 0x44]
mov eax, dword [edi]
mov dword [ebx + ecx*4 + 0x78], eax
xor eax, eax
inc byte [ebx + 0x44]
mov word [ebx + 0x46], ax
movzx eax, byte [ebx + 2]
push eax
push ebx
push edi
push edx
push esi
call fcn.00536660
add esp, 0x14
test eax, eax
jne 0x54d9bf
mov eax, dword [ebp - 0x18]
jmp 0x54d620
push 0x756e5c
push 0x10fdc
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00510c30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or byte [ebx + 1], 2
mov dword [ebx + 0x20], eax
xor eax, eax
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [ebx + 0x24], ecx
pop esi
mov dword [eax], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x756e5c
push 0x10e40
jmp 0x54d9a6
mov eax, dword [ebp + 0x1c]
mov word [ebx + 0x46], di
pop edi
mov dword [eax], esi
xor eax, eax
xor ecx, ecx
pop esi
mov word [ebx + 0x32], cx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], 0
xor eax, eax
mov word [ebx + 0x46], di
cmp byte [ecx + 0xb], al
je 0x54d9bf
push 0x756e5c
push 0x11047
jmp 0x54d9a6
push ebx
call fcn.0051ba00
mov ebx, dword [ebp + 8]
add esp, 4
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
pop edi
pop esi
mov word [ebx + 0x32], cx
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
xor ecx, ecx
pop edi
pop esi
mov eax, 7
mov word [ebx + 0x32], cx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x756e5c
push 0x11027
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00510c30
add esp, 0x14
mov eax, 0xb
xor ecx, ecx
mov word [ebx + 0x32], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret