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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5585b6
sub esp, 0x6c
mov edx, dword [esp + 0x70]
mov ebx, dword [edx]
mov ebp, dword [ebx + 4]
mov ebx, dword [ebx + 8]
lea esi, [ebx - 1]
test esi, esi
jl 0x558577
mov ebx, dword [ebp + ebx*4 - 4]
nop
cmp ebx, 0x10000
jb 0x558570
shr ebx, 0x10
mov eax, 0x10
cmp ebx, 0x100
jb 0x558569
shr ebx, 8
lea ebp, [eax + 8]
cmp ebx, 0x100
jae 0x5585a9
shl esi, 5
lea eax, [0xd892e0]
movzx eax, byte [ebx + eax]
add eax, ebp
add eax, esi
lea ecx, [eax + 7]
sar ecx, 0x1f
shr ecx, 0x1d
lea ecx, [ecx + eax + 7]
sar ecx, 3
mov ebx, dword [esp + 0x88]
cmp ebx, ecx
jne 0x55854b
mov dword [esp + 0x30], eax
mov byte [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0x84]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x14], eax
call fcn.00510a90
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov byte [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
call fcn.00559160
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov ecx, dword [eax + 8]
lea edx, [0x8ebd00]
mov dword [esp], edx
shl ecx, 2
mov dword [esp + 0x38], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00440500
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.005109e0
mov eax, dword [esp + 0x30]
lea ecx, [eax + 6]
sar ecx, 0x1f
shr ecx, 0x1d
lea ecx, [ecx + eax + 6]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
cmp edx, ebx
ja 0x5585a0
sar ecx, 3
sub ebx, edx
cmp ecx, ebx
jl 0x55852d
mov dword [esp + 0x34], ecx
lea eax, [0x8ebd00]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00440500
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 8]
lea ebx, [0x8ebd00]
mov dword [esp], ebx
shl edx, 2
mov dword [esp + 0x3c], edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00440500
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.005109e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
ja 0x55859b
mov edx, dword [esp + 0x48]
mov dword [esp], edx
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
sub ecx, eax
mov ebp, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x44]
add eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call fcn.00557390
mov eax, dword [esp + 0x90]
cmp eax, 0xffffffff
jne 0x55851d
nop
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x558583
cmp eax, 0x14
jae 0x558583
mov edx, dword [0xdb9978]
mov ecx, dword [0xdb997c]
cmp eax, ecx
jae 0x55857e
movzx ecx, byte [edx + eax]
mov dword [esp + 0x90], ecx
mov dword [esp], eax
call fcn.00535b20
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x78]
mov dword [esp], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
dec edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
call fcn.005577a0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
add esp, 0x6c
ret
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x90]
jmp 0x55849d
mov eax, dword [0xdc1be4]
mov ecx, dword [0xdc1be0]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x6c
ret
mov eax, dword [0xdc1be4]
mov ecx, dword [0xdc1be0]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x6c
ret
mov ebp, eax
jmp 0x55823b
xor eax, eax
jmp 0x558229
xor eax, eax
jmp 0x558258
call fcn.00457070
lea eax, [0x8eba40]
mov dword [esp], eax
lea eax, [0xa44878]
mov dword [esp + 4], eax
call fcn.0042cff0
call fcn.004570c0
mov eax, edx
mov ecx, ebx
call fcn.004570c0
mov eax, ebx
mov ecx, 0x100
call fcn.00457070
nop
call fcn.004557a0
jmp fcn.005581e0