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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x592f1e
sub esp, 0x7c
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x14]
cmp ecx, 0xe
jae 0x5928bf
mov dword [esp], eax
call fcn.00594090
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x592f0c
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x14]
cmp ecx, 0xe
jb 0x592898
mov ecx, dword [eax + 0x10]
mov edx, ecx
and ecx, 0x1f
mov dword [esp + 0x3c], ecx
lea ebx, [ecx + 0x101]
mov dword [esp + 0x18], ebx
cmp ebx, 0x11e
jg 0x592ece
mov ebp, edx
shr edx, 5
mov dword [eax + 0x10], edx
and edx, 0x1f
mov dword [esp + 0x38], edx
lea esi, [edx + 1]
mov dword [esp + 0x1c], esi
cmp esi, 0x1e
jg 0x592e90
mov edi, ebp
shr ebp, 0xe
mov dword [eax + 0x10], ebp
mov ebp, dword [eax + 0x14]
add ebp, 0xfffffff2
mov dword [eax + 0x14], ebp
shr edi, 0xa
and edi, 0xf
lea ebp, [edi + 4]
mov dword [esp + 0x2c], ebp
xor edi, edi
mov dword [esp + 0x28], edi
cmp edi, ebp
jge 0x5929ce
mov esi, dword [eax + 0x14]
cmp esi, 3
jae 0x592973
mov dword [esp], eax
call fcn.00594090
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x592e7e
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
mov esi, dword [eax + 0x14]
cmp esi, 3
jb 0x592934
mov esi, dword [eax + 0x1044]
test byte [esi], al
mov ebx, dword [eax + 0x10]
cmp edi, 0x13
jae 0x592e77
lea ecx, [0x84cdc0]
mov edx, dword [ecx + edi*4]
cmp edx, 0x13
jae 0x592e77
and ebx, 7
mov dword [esi + edx*4], ebx
mov edx, dword [eax + 0x10]
shr edx, 3
mov dword [eax + 0x10], edx
mov edx, dword [eax + 0x14]
add edx, 0xfffffffd
mov dword [eax + 0x14], edx
inc edi
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x28], edi
cmp edi, ebp
jl 0x59292c
cmp ebp, 0x13
jge 0x592a0b
mov edi, dword [eax + 0x1044]
test byte [edi], al
cmp ebp, 0x13
jae 0x592e70
lea esi, [0x84cdc0]
mov ebx, dword [esi + ebp*4]
cmp ebx, 0x13
jae 0x592e70
mov dword [edi + ebx*4], 0
inc ebp
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
cmp ebp, 0x13
jl 0x5929d3
mov ebp, dword [eax + 0x1044]
test byte [ebp], al
lea edi, [eax + 0x18]
mov dword [esp + 0x70], edi
mov dword [esp], edi
mov dword [esp + 4], ebp
mov dword [esp + 8], 0x13
mov dword [esp + 0xc], 0x13
call fcn.00591e10
movzx eax, byte [esp + 0x10]
test al, al
je 0x592e2b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea eax, [ecx + eax + 0x102]
mov dword [esp + 0x24], eax
xor edx, edx
mov dword [esp + 0x30], edx
cmp edx, eax
jge 0x592acc
mov ebx, dword [esp + 0x70]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x80]
mov dword [esp], ebp
call fcn.00594180
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test ecx, ecx
jne 0x592e19
cmp eax, 0x10
jge 0x592c0f
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x1040]
test byte [edx], al
mov ebx, dword [esp + 0x30]
cmp ebx, 0x13c
jae 0x592c08
mov dword [edx + ebx*4], eax
lea eax, [ebx + 1]
mov ecx, dword [esp + 0x3c]
mov edx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], edx
cmp edx, eax
jl 0x592a61
mov edx, dword [esp + 0x80]
mov ebx, dword [edx + 0x1040]
test byte [ebx], al
mov ebp, dword [esp + 0x18]
cmp ebp, 0x13c
ja 0x592c01
mov esi, dword [esp + 0x70]
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 0x13c
call fcn.00591e10
movzx eax, byte [esp + 0x10]
test al, al
je 0x592bbc
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x1040]
test byte [ecx], al
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
cmp edx, ebx
ja 0x592c01
cmp ebx, 0x13c
ja 0x592c01
lea edx, [eax + 0x82c]
mov dword [esp], edx
mov edx, dword [esp + 0x3c]
lea ebx, [edx - 0x3b]
neg ebx
shl edx, 2
add edx, 0x404
lea ebp, [ebx - 1]
sar ebp, 0x1f
xor ebp, 0xffffffff
and edx, ebp
add ecx, edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
call fcn.00591e10
movzx eax, byte [esp + 0x10]
test al, al
je 0x592bbc
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x1040]
mov edx, dword [eax + 0x18]
mov ecx, dword [ecx + 0x400]
cmp edx, ecx
jge 0x592ba2
mov dword [eax + 0x18], ecx
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x7c
ret
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
lea eax, [0x8484e0]
mov dword [esp], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
call fcn.0040a900
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x7c
ret
call fcn.004246e0
ud2
call fcn.00424680
ud2
jne 0x592d95
mov eax, dword [esp + 0x30]
test eax, eax
je 0x592d50
mov edx, dword [esp + 0x80]
mov ebx, dword [edx + 0x1040]
test byte [ebx], al
lea ebp, [eax - 1]
cmp ebp, 0x13c
jae 0x592d49
mov ebx, dword [ebx + eax*4 - 4]
mov ecx, 2
mov ebp, 3
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x34], ebx
mov esi, dword [edx + 0x14]
cmp esi, ecx
jae 0x592c96
mov dword [esp], edx
call fcn.00594090
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x592d37
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x14]
mov esi, dword [edx + 0x14]
cmp esi, ecx
jb 0x592c60
mov esi, dword [edx + 0x10]
mov edi, esi
shr esi, cl
cmp ecx, 0x20
sbb ebx, ebx
and esi, ebx
mov dword [edx + 0x10], esi
mov esi, dword [edx + 0x14]
sub esi, ecx
mov dword [edx + 0x14], esi
mov esi, 1
shl esi, cl
and ebx, esi
dec ebx
and edi, ebx
lea ebx, [edi + ebp]
lea ebp, [eax + ebx]
mov esi, dword [esp + 0x24]
cmp ebp, esi
jg 0x592cf9
mov ecx, dword [esp + 0x34]
xor ebp, ebp
cmp ebp, ebx
jge 0x592ceb
mov edi, dword [edx + 0x1040]
test byte [edi], al
cmp eax, 0x13c
jae 0x592cf2
mov dword [edi + eax*4], ecx
inc ebp
inc eax
cmp ebp, ebx
jl 0x592cd3
mov ecx, edx
jmp 0x592aba
call fcn.00424680
ud2
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
lea eax, [0x8484e0]
mov dword [esp], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
call fcn.0040a900
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
call fcn.00424680
ud2
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
lea eax, [0x8484e0]
mov dword [esp], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
call fcn.0040a900
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x7c
ret
cmp eax, 0x11
jne 0x592db6
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x80]
mov ecx, 3
mov ebp, 3
xor ebx, ebx
jmp 0x592c4d
cmp eax, 0x12
jne 0x592dd7
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x80]
mov ecx, 7
mov ebp, 0xb
xor ebx, ebx
jmp 0x592c4d
lea eax, [0x70bb3b]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0x16
lea eax, [0x848500]
mov dword [esp], eax
lea eax, [esp + 0x74]
mov dword [esp + 4], eax
call fcn.0040a900
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x7c
ret
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
lea eax, [0x8484e0]
mov dword [esp], eax
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
call fcn.0040a900
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x7c
ret
call fcn.00424680
ud2
call fcn.00424680
ud2
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
lea eax, [0x8484e0]
mov dword [esp], eax
lea eax, [esp + 0x60]
mov dword [esp + 4], eax
call fcn.0040a900
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [0x8484e0]
mov dword [esp], eax
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
call fcn.0040a900
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x7c
ret
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x7c
ret
call fcn.004486b0
jmp fcn.00592870