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

Disassembly:
push 0xffffffffffffffff
push 0x65883b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x7d9a88]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7d9a88]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x258]
mov edi, dword [esp + 0x24c]
mov esi, ecx
mov ecx, dword [esp + 0x264]
lea edx, [esp + 0xcc]
push edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
call dword [0x65b33c]
mov ebx, dword [esp + 0x250]
mov eax, dword [esp + 0x254]
mov dword [esp + 0x14], eax
cmp bx, 0x20
je 0x54e778
mov ecx, 0x8140
cmp bx, cx
je 0x54e778
cmp dword [esp + 0x25c], 0
je 0x54e3dc
lea edx, [esi + 0xa5]
mov dword [esp + 0x34], edx
jmp 0x54e3e3
lea ecx, [esi + 0x64]
mov dword [esp + 0x34], ecx
test eax, eax
jle 0x54e3eb
neg eax
jmp 0x54e3f3
mov ecx, eax
neg ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0xc]
push eax
call fcn.00427be0
mov ecx, dword [esi + 0xc]
call fcn.00427dd0
mov edx, dword [esi + 0x58]
push eax
push edx
call dword [0x65b06c]
mov dword [esp + 0x38], eax
test ebx, 0xff00
je 0x54e423
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
jmp 0x54e42c
mov ecx, dword [esi + 0x2c]
inc ecx
shr ecx, 1
mov dword [esi + 0x30], ecx
lea edx, [esp + 0x5c]
push 0x10
push edx
call fcn.0050cd20
mov eax, 1
add esp, 8
mov ecx, eax
lea edx, [esp + 0xec]
mov word [esp + 0x5e], ax
mov eax, dword [esi + 0x58]
push edx
push eax
mov word [esp + 0x72], cx
call dword [0x65b04c]
mov eax, dword [esi + 0x58]
lea ecx, [esp + 0x5c]
push ecx
push 0
push 0
lea edx, [esp + 0x54]
push edx
movzx ebp, bx
push 6
push ebp
push eax
call dword [0x65b050]
mov ebx, eax
cmp dword [esi + 0x60], ebx
jae 0x54e4ab
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x54e49a
push eax
call fcn.0050b5f0
add esp, 4
mov dword [esi + 0x5c], 0
push ebx
push 0
call fcn.0050b5a0
add esp, 8
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ebx
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x60]
lea ecx, [esp + 0x5c]
push ecx
push edx
mov edx, dword [esi + 0x58]
push eax
lea ecx, [esp + 0x54]
push ecx
push 6
push ebp
push edx
call dword [0x65b050]
test eax, eax
jbe 0x54e744
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], eax
test al, 3
je 0x54e4eb
lea ecx, [eax + 3]
and ecx, 0xfc
mov dword [esp + 0x30], ecx
mov ebx, eax
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x124]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], eax
call fcn.0053e630
mov eax, dword [esp + 0xf0]
mov edx, dword [esp + 0x14]
xor ebp, ebp
xor ecx, ecx
cmp eax, edx
mov dword [esp + 0x244], ebp
jle 0x54e523
mov ecx, eax
sub ecx, edx
sub eax, dword [esp + 0x54]
lea edx, [esp + 0x1c]
sub eax, ecx
lea ecx, [esp + 0x24]
push ecx
inc eax
push edx
mov ecx, edi
mov dword [esp + 0x30], eax
call fcn.0053e660
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push 4
push eax
push ecx
lea ecx, [esp + 0x130]
call fcn.0053e7a0
cmp dword [esp + 0x260], ebp
je 0x54e579
movsx edx, word [esp + 0x58]
mov eax, dword [esi + 0x30]
cmp eax, edx
jbe 0x54e579
sub eax, ebx
shr eax, 1
inc eax
mov ebx, eax
mov dword [esp + 0x20], eax
jmp 0x54e582
mov ebx, dword [esp + 0x50]
inc ebx
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x18], ebp
jbe 0x54e5f6
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x28]
mov edi, dword [esi + 0x5c]
add edi, dword [esp + 0x14]
lea ecx, [eax + ebp]
push ecx
push ebx
lea ecx, [esp + 0x12c]
call fcn.0053e6a0
test eax, eax
je 0x54e5e3
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jbe 0x54e5e3
movzx edx, byte [esi + 0x42]
mov ebx, dword [esp + 0x34]
mov byte [eax], dl
movzx edx, byte [esi + 0x41]
mov byte [eax + 1], dl
movzx edx, byte [esi + 0x40]
mov byte [eax + 2], dl
movzx edx, byte [edi]
movzx edx, byte [edx + ebx]
mov byte [eax + 3], dl
inc edi
add eax, 4
sub ecx, 1
jne 0x54e5b4
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
add dword [esp + 0x14], eax
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x54e58c
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
push ecx
lea edx, [esp + 0x128]
push edx
push edi
mov ecx, esi
call fcn.0054ca60
mov ebp, eax
lea eax, [esp + 0x6c]
push 0x80
push eax
call fcn.0050cd20
add esp, 8
mov ecx, edi
call fcn.0053e670
mov ecx, edi
mov dword [esp + 0x70], eax
call fcn.0053e690
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x2c]
add eax, ebx
mov dword [esp + 0x78], edx
lea edx, [eax + ecx + 2]
mov eax, dword [esi + 0x54]
add eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x84], edx
lea edx, [eax + ecx + 2]
mov ecx, edi
mov dword [esp + 0x88], edx
call fcn.0053e680
lea ecx, [esp + 0x124]
mov dword [esp + 0x8c], eax
call fcn.0053e690
lea ecx, [esp + 0x124]
mov dword [esp + 0x94], eax
call fcn.0053e670
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0xa0], ecx
xor edi, edi
lea ecx, [esp + 0x124]
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], eax
call fcn.0053e680
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], 0xff
cmp ebp, edi
je 0x54e720
lea ecx, [esp + 0x6c]
push ecx
call fcn.00558170
jmp 0x54e72a
lea edx, [esp + 0x6c]
push edx
call fcn.00558940
add esp, 4
lea ecx, [esp + 0x124]
mov dword [esp + 0x244], 0xffffffff
call fcn.0053eea0
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x58]
push eax
push ecx
call dword [0x65b06c]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, 1
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.005ae766
add esp, 0x234
ret 0x1c