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

Disassembly:
sub esp, 0x70
mov eax, dword [0x8a0c44]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x2c]
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
push edi
mov edi, dword [esp + 0x84]
xor ebx, ebx
push ebx
push edi
push ebp
push eax
mov byte [esp + 0x1f], bl
mov byte [esp + 0x1e], bl
call ecx
add esp, 0x10
cmp dword [esp + 0x8c], ebx
mov dword [esi + 0xa8], ebp
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], ebx
mov dword [esp + 0x10], ebx
jl 0x54a9e0
jg 0x54a717
cmp dword [esp + 0x88], ebx
jbe 0x54a9e0
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x34]
push 0x18
push 1
lea edx, [esp + 0x5c]
push edx
push eax
call ecx
add esp, 0x10
cmp eax, 0x18
jne 0x54a9b4
mov ecx, dword [esi + 0x68]
lea edx, [esp + 0x50]
push edx
mov edx, dword [esi + 0x5c]
push 2
lea eax, [esp + 0x72]
push eax
push ecx
call edx
mov edx, dword [esi + 0x68]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esi + 0x5c]
push 4
lea ecx, [esp + 0x6c]
push ecx
push edx
call eax
mov eax, dword [esi + 0x68]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esi + 0x5c]
push 4
lea edx, [esp + 0x80]
push edx
push eax
call ecx
mov ecx, dword [esi + 0x68]
lea edx, [esp + 0x64]
push edx
mov edx, dword [esi + 0x5c]
push 4
lea eax, [esp + 0x94]
push eax
push ecx
call edx
mov edx, dword [esi + 0x68]
add esp, 0x40
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x5c]
push 4
lea ecx, [esp + 0x6c]
push ecx
push edx
call eax
add esp, 0x10
test byte [esp + 0x50], 1
je 0x54a7c2
cmp dword [esp + 0x18], 4
ja 0x54a7c2
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x1c], ecx
jmp 0x54a7da
mov ecx, dword [esi + 0x68]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x5c]
push 4
lea eax, [esp + 0x68]
push eax
push ecx
call edx
add esp, 0x10
mov edx, dword [esi + 0x68]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x5c]
push 2
lea ecx, [esp + 0x70]
push ecx
push edx
call eax
mov eax, dword [esp + 0x28]
movzx edi, word [esp + 0x24]
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
and dword [esp + 0x44], 0xffffff
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
xor edx, edx
and eax, 0xffffff
add esp, 0x10
mov dword [esp + 0x4c], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], eax
cmp ebp, 1
jne 0x54a851
cmp eax, 9
jne 0x54a83f
mov byte [esp + 0xf], 1
jmp 0x54a857
cmp eax, 8
jne 0x54a851
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov byte [esp + 0xe], 1
cmp byte [esp + 0xf], bl
je 0x54a87f
cmp byte [esp + 0xe], bl
je 0x54a87f
mov ecx, dword [esi + 0xac]
cmp ecx, dword [esp + 0x24]
jg 0x54a96b
jl 0x54a87f
mov edx, dword [esi + 0xa8]
cmp edx, dword [esp + 0x20]
jae 0x54a96b
cmp eax, 0x17
jne 0x54a889
lea ecx, [eax - 0xf]
jmp 0x54a895
xor ecx, ecx
cmp eax, 0x18
sete cl
lea ecx, [ecx + ecx + 2]
lea edx, [esp + 0x28]
push edx
push ecx
mov ecx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x40]
push edi
lea edx, [esp + 0x4c]
push edx
push ecx
push eax
push ebp
push esi
call fcn.00542230
add esp, 0x24
cmp eax, ebx
je 0x54a9cc
movzx ecx, word [eax + 0x24]
test ecx, 0x8000
je 0x54a8d8
and ecx, 0x7fff
dec dword [esp + 0x10]
mov word [eax + 0x24], cx
mov edx, dword [esi + 0x84]
push ebx
push eax
push edx
call fcn.0053dab0
mov eax, dword [esp + 0x40]
add esp, 0xc
cmp eax, 0x10000
jb 0x54a92d
push ebx
push 9
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call fcn.00542230
add esp, 0x24
cmp eax, ebx
je 0x54a9cc
movzx ecx, word [eax + 0x24]
test cl, 1
je 0x54a92d
test ecx, 0x8000
jne 0x54a92d
or ecx, 0x8000
inc dword [esp + 0x10]
mov word [eax + 0x24], cx
lea eax, [esp + 0x88]
push eax
push ebx
push 0x18
call fcn.0051ee80
lea eax, [esi + 0xa8]
push eax
push ebx
push 0x18
call fcn.0051ee60
add esp, 0x18
cmp dword [esp + 0x8c], ebx
jg 0x54a717
jl 0x54a96b
cmp dword [esp + 0x88], ebx
ja 0x54a717
mov ebp, dword [esp + 0x10]
cmp ebp, ebx
jbe 0x54a9e0
mov edi, dword [esi + 0xc]
push esi
add edi, 8
call fcn.00542df0
add esp, 4
push eax
lea edx, [esp + 0x70]
push edx
push ebx
push 1
push ebp
call fcn.005444b0
add esp, 0x10
push eax
mov eax, dword [edi]
push 0x15
push esi
push ebx
call eax
add esp, 0x14
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0063ecb3
add esp, 0x70
ret
mov edi, dword [esi + 0xc]
push esi
add edi, 8
call fcn.00542df0
mov ecx, dword [edi]
push eax
push 0xe
push esi
push ebx
call ecx
add esp, 0x14
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0063ecb3
add esp, 0x70
ret
mov ecx, dword [esp + 0x78]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.0063ecb3
add esp, 0x70
ret