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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x48]
cmp eax, dword [ecx + 8]
jbe 0x593bc3
sub esp, 0xc8
mov ecx, dword [esp + 0xd8]
test ecx, ecx
je 0x593ba4
nop
movzx edx, byte [0x753128]
test dl, dl
je 0x593b91
mov edx, dword [esp + 0xd8]
mov dword [0x75312c], edx
mov ebx, dword [0x770e60]
test ebx, ebx
jne 0x593b7a
mov eax, dword [esp + 0xdc]
mov dword [0x753130], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x593b6d
nop
movzx ebx, byte [ecx + 0xf]
mov ebp, ebx
and ebx, 0x1f
xchg ebp, eax
test al, 0x20
xchg ebp, eax
jne 0x59312b
or ebx, 0x80
mov ebp, eax
nop
mov esi, ebx
and ebx, 0x1f
cmp ebx, 0x16
je 0x593b4c
mov dword [esp + 0x70], ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x74], eax
nop
nop
mov edx, dword [esp + 0xe0]
mov dword [esp], edx
mov ebx, dword [esp + 0xe4]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0xe8]
mov dword [esp + 8], ebp
call fcn.00488490
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 0x28]
mov dword [esp], ecx
call edx
mov eax, dword [esp + 4]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 0x54]
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
call fcn.00483040
mov eax, dword [esp + 0x10]
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x94], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x58], edx
mov ebx, dword [esp + 0xe0]
mov dword [esp], ebx
mov ebp, dword [esp + 0xe4]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0xe8]
mov dword [esp + 8], esi
mov byte [esp + 0xc], 1
call fcn.004862f0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x8c], ecx
mov edx, dword [esp + 0xe0]
mov dword [esp], edx
mov ebx, dword [esp + 0xe4]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0xe8]
mov dword [esp + 8], ebp
call fcn.00488490
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00488ff0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
call fcn.004862f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x8c]
cmp dword [esp + 0x10], ecx
je 0x593b2b
xor eax, eax
test al, al
jne 0x593b1f
mov eax, dword [esp + 0xcc]
mov ecx, dword [eax]
movzx ecx, byte [ecx + 9]
test cl, cl
jne 0x593714
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xe0]
mov ebx, dword [esp + 0xe4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], edx
lea eax, [0x5beac0]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00444f30
mov eax, dword [esp + 0xc]
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x59330d
mov ebp, dword [esp + 0x40]
inc ebp
mov ebx, eax
mov eax, edx
mov edx, ecx
mov ecx, ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x40], ecx
mov ebp, dword [esp + 0x70]
mov dword [esp], ebp
mov esi, dword [esp + 0x74]
mov dword [esp + 4], esi
mov edi, dword [esp + 0x3c]
mov dword [esp + 8], edi
call fcn.004868e0
mov eax, dword [esp + 0x40]
cmp dword [esp + 0xc], eax
jle 0x59365c
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.00486140
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
call fcn.004862f0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x7c], ecx
mov edx, dword [esp + 0x68]
mov dword [esp], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x38]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x40]
mov dword [esp + 0xc], esi
call fcn.00486140
mov eax, dword [esp + 0x10]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x90], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
mov ebx, dword [esp + 0x40]
mov ebp, ebx
sar ebx, 0x1f
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov dword [esp + 8], 0xa
call fcn.00473e40
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], 0
mov edx, dword [esp + 0xd0]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0xd4]
mov dword [esp + 8], ebx
lea ebp, [0x6379bc]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
lea eax, [0x6379c0]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 1
call fcn.004484c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xcc]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
call fcn.0058b9f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x24]
test eax, eax
jne 0x5934c9
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x78]
jmp 0x593300
test ecx, ecx
je 0x5935b2
cmp dword [ecx + 8], 0xe1bf9e84
jne 0x593651
lea esi, [0x639fb8]
cmp esi, edx
jne 0x5935b2
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x44]
lea ecx, [eax + edx]
mov dword [esp + 0x2c], ecx
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x48]
cmp ebp, ecx
jb 0x59355f
mov edi, dword [esp + 0x78]
cmp eax, ecx
ja 0x593bbd
mov dword [esp + 0x30], ebp
mov dword [esp + 0x5c], edi
lea ecx, [0x5beac0]
mov dword [esp], ecx
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
shl eax, 3
sar ebp, 0x1f
and eax, ebp
add eax, edi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.004107d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x5c]
mov ebx, eax
mov eax, ecx
mov ecx, ebx
jmp 0x593300
mov dword [esp + 0x84], ebx
mov dword [esp + 0x50], edx
lea edx, [0x5beac0]
mov dword [esp], edx
mov ebx, dword [esp + 0x78]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
call fcn.004450a0
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x84]
lea esi, [0x639fb8]
jmp 0x593508
mov eax, dword [eax + 0x10]
mov dword [esp], ebp
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x44]
lea ebx, [edx + 1]
mov ebp, dword [esp + 0x48]
cmp ebp, ebx
jb 0x593604
mov esi, dword [esp + 0x78]
mov edi, ebx
lea ebx, [esi + edx*8 + 4]
mov dword [ebx], ecx
mov ecx, dword [0x770e60]
lea edx, [esi + edx*8]
test ecx, ecx
jne 0x5935f7
mov dword [edx], eax
mov eax, edi
mov ecx, ebp
mov edx, esi
jmp 0x593554
mov ecx, edi
mov edi, edx
call fcn.0045df70
mov edi, ecx
jmp 0x5935ec
mov dword [esp + 0x94], eax
mov dword [esp + 0x50], ecx
lea eax, [0x5beac0]
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.004450a0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
jmp 0x5935d5
lea esi, [0x639fb8]
jmp 0x5935b2
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
call fcn.004875d0
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x5936f7
lea eax, [0x5c6060]
mov dword [esp], eax
call fcn.0040b8e0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x44]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 8], eax
mov eax, dword [0x770e60]
test eax, eax
jne 0x5936ec
mov eax, dword [esp + 0x78]
mov dword [edi], eax
lea eax, [0x639fb8]
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], edi
add esp, 0xc8
ret
mov eax, dword [esp + 0x78]
call fcn.0045df70
jmp 0x5936d1
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
add esp, 0xc8
ret
mov ecx, dword [esp + 0x3c]
mov edx, ecx
and ecx, 0x1f
cmp ecx, 0x11
je 0x593986
cmp ecx, 0x17
je 0x593986
mov dword [esp + 0x54], ecx
mov ebx, dword [eax]
movzx ebx, byte [ebx + 0xa]
test bl, bl
je 0x59376a
cmp ecx, 0x15
jne 0x5938ae
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004868e0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x59383a
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov eax, dword [esp + 0xd0]
mov dword [esp], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 4], eax
call fcn.00409140
mov eax, dword [esp + 8]
lea ecx, [0x5beac0]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.00409030
mov eax, dword [esp + 4]
lea ecx, [0x5c1440]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
lea eax, [0x5facc2]
mov dword [esp], eax
mov dword [esp + 4], 0x33
lea eax, [esp + 0xa0]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004bdd90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], ecx
add esp, 0xc8
ret
mov eax, dword [esp + 0x94]
mov dword [esp], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
call fcn.00488ff0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0xe0]
mov dword [esp], ebx
mov ebx, dword [esp + 0xe4]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xe8]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004875d0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
add esp, 0xc8
ret
lea eax, [0x5ba4c0]
mov dword [esp], eax
call fcn.0040b8e0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xd8]
mov dword [eax], ecx
mov ecx, dword [0x770e60]
test ecx, ecx
jne 0x59396e
mov ecx, dword [esp + 0xdc]
mov dword [eax + 4], ecx
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004091c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xcc]
mov dword [esp], ecx
mov ecx, dword [esp + 0xd0]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xd4]
mov dword [esp + 8], ecx
lea ecx, [0x5b6de0]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x1c], eax
call fcn.00593090
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], ecx
add esp, 0xc8
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0xdc]
call fcn.0045df70
mov eax, ecx
jmp 0x5938e1
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004868e0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 0x54]
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 0x50]
cmp dword [esp + 4], eax
jl 0x593a0a
mov eax, dword [esp + 0x94]
mov dword [esp], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
call fcn.004890d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00485c20
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x5932ca
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x54]
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
call fcn.004868e0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
lea edi, [esp + 0xb0]
xor eax, eax
call fcn.0045e1fa
mov eax, dword [esp + 0xd0]
mov dword [esp], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 4], eax
call fcn.00409140
mov eax, dword [esp + 8]
lea ecx, [0x5beac0]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.00409030
mov eax, dword [esp + 4]
lea ecx, [0x5be280]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.00409030
mov eax, dword [esp + 4]
lea ecx, [0x5be280]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], eax
lea eax, [0x5fc0d8]
mov dword [esp], eax
mov dword [esp + 4], 0x45
lea eax, [esp + 0xb0]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.004bdd90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], ecx
add esp, 0xc8
ret
mov eax, dword [esp + 0xcc]
jmp 0x593714
mov dword [esp], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004036c0
movzx eax, byte [esp + 0xc]
jmp 0x593298
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.00485c20
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x59313c
mov ebp, eax
xor ebx, ebx
xor ecx, ecx
xor eax, eax
jmp 0x59312d
lea edi, [0x753130]
mov eax, dword [esp + 0xdc]
call fcn.0045df70
jmp 0x5930f7
mov eax, dword [esp + 0xdc]
mov edx, dword [esp + 0xd8]
jmp 0x5930f7
mov edx, dword [esp + 0xd8]
mov ebp, dword [esp + 0xdc]
xor ebx, ebx
xor ecx, ecx
xor eax, eax
jmp 0x59312d
call fcn.0045e050
nop
call fcn.0045ca10
jmp fcn.00593090