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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xb8]
cmp eax, dword [ecx + 8]
jbe 0x599491
sub esp, 0x138
mov eax, dword [esp + 0x144]
test eax, eax
jle 0x599452
mov ecx, dword [esp + 0x150]
test ecx, ecx
jle 0x59943d
lea edx, [eax - 1]
cmp edx, eax
jae 0x59948a
mov edx, dword [esp + 0x13c]
lea ebx, [edx + eax*4 - 4]
lea ebp, [ecx - 1]
cmp ebp, ecx
jae 0x59948a
mov ebp, dword [esp + 0x148]
lea esi, [ebp + ecx*4 - 4]
cmp esi, ebx
sete bl
test bl, bl
je 0x5993d3
xor eax, eax
xor edx, edx
xor ebx, ebx
mov esi, dword [esp + 0x164]
cmp esi, 1
jne 0x59891e
mov edi, dword [esp + 0x160]
mov edi, dword [edi]
cmp edi, 1
je 0x5993b3
mov edi, dword [esp + 0x158]
test edi, edi
je 0x599353
cmp edi, 1
jne 0x598948
mov edi, dword [esp + 0x154]
mov edi, dword [edi]
cmp edi, 1
jne 0x598948
test esi, esi
jne 0x5992e2
test esi, esi
je 0x598954
cmp esi, ebx
jg 0x5992a7
mov eax, dword [esp + 0x14c]
cmp eax, ebx
jg 0x599261
mov edi, eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], eax
cmp eax, edi
jle 0x59925a
mov dword [esp + 0x134], edx
mov dword [esp], edx
mov dword [esp + 4], ebp
shl edi, 2
mov dword [esp + 8], edi
call fcn.0044e470
mov eax, dword [esp + 0x148]
mov dword [esp], eax
mov ecx, dword [esp + 0x14c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x150]
mov dword [esp + 8], edx
mov ebx, dword [0xc77034]
mov ebp, dword [0xc77030]
mov esi, dword [0xc77038]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
call fcn.005946e0
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x599247
mov eax, dword [esp + 0x158]
cmp eax, 1
jle 0x59923b
mov ecx, dword [esp + 0x164]
test ecx, ecx
jg 0x5990fc
lea edx, [eax - 1]
cmp edx, eax
jae 0x599475
mov ecx, dword [esp + 0x154]
mov edx, dword [ecx + eax*4 - 4]
mov dword [esp + 0x5c], edx
mov dword [esp], edx
call fcn.00585210
mov eax, dword [esp + 4]
lea ecx, [eax + 1]
mov edx, dword [esp + 0x5c]
shl edx, cl
cmp ecx, 0x20
sbb ecx, ecx
and edx, ecx
add eax, 0xffffffe1
neg eax
mov dword [esp + 0x58], eax
xor ecx, ecx
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x134]
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x50], ebx
xor ebp, ebp
mov dword [esp + 0x54], ebp
xor esi, esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x10c], eax
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x104], edx
xor edx, edx
mov dword [esp + 0xb0], edx
xor ecx, ecx
mov dword [esp + 0xac], ecx
xor edi, edi
mov dword [esp + 0x130], edi
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x134]
mov eax, dword [esp + 0x10c]
mov edx, dword [esp + 0x104]
xor ecx, ecx
xor edi, edi
mov dword [esp + 0xfc], eax
xor eax, eax
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x10c]
jmp 0x598b25
mov ebp, dword [esp + 0x74]
inc ebp
shl ebx, 1
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xac], ecx
mov eax, dword [esp + 0x58]
mov ecx, ebp
mov ebp, dword [esp + 0xec]
mov esi, dword [esp + 0xf4]
mov edi, dword [esp + 0x128]
mov ebp, edx
mov edx, ebx
mov ebx, ebp
mov ebp, dword [esp + 0xec]
cmp ecx, eax
jge 0x598d85
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], ebp
mov dword [esp + 0x12c], esi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x5c], edx
mov dword [esp], edi
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
call fcn.00596170
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
test ebx, 0x80000000
jne 0x598ce0
mov ebp, dword [esp + 0x164]
test ebp, ebp
mov esi, dword [esp + 0xa4]
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0x12c]
mov dword [esp + 0x128], esi
mov esi, dword [esp + 0xa4]
jne 0x598bef
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x6c], eax
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x68], ecx
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xdc]
jmp 0x598aca
mov dword [esp + 0x124], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x9c], edx
mov ebx, dword [esp + 0x128]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov ebx, dword [esp + 0x134]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x160]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x168]
mov dword [esp + 0x2c], esi
call fcn.005969b0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x130]
mov dword [esp + 0x128], edi
mov edi, dword [esp + 0xb0]
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x124]
mov dword [esp + 0x134], edi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x130], eax
mov ecx, ebp
mov eax, ebx
mov edx, esi
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x164]
mov esi, dword [esp + 0xac]
jmp 0x598aca
mov dword [esp + 0x114], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x94], edx
mov ebx, dword [esp + 0x12c]
mov dword [esp], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x148]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x14c]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x150]
mov dword [esp + 0x20], esi
call fcn.005956c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x164]
test ebp, ebp
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x114]
mov dword [esp + 0x128], ebx
mov ebx, dword [esp + 0x5c]
jmp 0x598bb6
mov eax, dword [esp + 0x158]
lea ecx, [eax - 2]
mov edx, dword [esp + 0x54]
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x54]
jmp 0x599062
mov ebp, dword [esp + 0x70]
inc ebp
shl ebx, 1
mov dword [esp + 0x70], ebp
mov ebp, ecx
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x12c]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x78]
mov ecx, ebx
mov ebx, edx
mov edx, esi
mov esi, eax
mov eax, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x70]
cmp eax, 0x20
jge 0x599040
mov dword [esp + 0x90], ebx
mov dword [esp + 0x120], esi
mov dword [esp + 0x8c], ebp
mov dword [esp], edi
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
call fcn.00596170
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
test ebx, 0x80000000
jne 0x598fa1
mov ebp, dword [esp + 0x164]
test ebp, ebp
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x8c]
mov esi, dword [esp + 0x120]
mov dword [esp + 0x12c], esi
mov esi, dword [esp + 0x90]
jne 0x598eb3
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x68], eax
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb4]
jmp 0x598db2
mov dword [esp + 0x88], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x11c], eax
mov ebx, dword [esp + 0x12c]
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov ebx, dword [esp + 0x134]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x160]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x168]
mov dword [esp + 0x2c], esi
call fcn.005969b0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0xb0]
mov edi, dword [esp + 0x130]
mov dword [esp + 0x12c], edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x134], edi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x130], eax
mov edx, esi
mov ecx, ebp
mov eax, ebx
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x164]
mov esi, dword [esp + 0x54]
jmp 0x598db2
mov dword [esp + 0x118], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], edx
mov ebx, dword [esp + 0x120]
mov dword [esp], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x90]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x148]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x14c]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x150]
mov dword [esp + 0x20], esi
call fcn.005956c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x164]
test ebp, ebp
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x80]
mov ebx, dword [esp + 0x118]
mov dword [esp + 0x12c], ebx
mov ebx, dword [esp + 0x5c]
jmp 0x598e7d
dec ecx
mov eax, dword [esp + 0x158]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x158]
test ecx, ecx
jl 0x5990c4
cmp ecx, eax
jae 0x59946e
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x154]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0xd4], eax
xor eax, eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x54], eax
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xb0], ecx
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xc4]
jmp 0x598def
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00594040
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x16c], eax
mov dword [esp + 0x170], ecx
mov dword [esp + 0x174], edx
add esp, 0x138
ret
mov edx, dword [esp + 0x160]
mov ebx, dword [edx]
and ebx, 1
cmp ebx, 1
jne 0x5991a6
mov ebx, dword [esp + 0x134]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x148]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x14c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x150]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x154]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x15c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x168]
mov dword [esp + 0x2c], eax
call fcn.00599e50
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x16c], eax
mov dword [esp + 0x170], ecx
mov dword [esp + 0x174], edx
add esp, 0x138
ret
mov ebx, dword [esp + 0x134]
mov dword [esp], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x148]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x14c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x150]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x154]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x15c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
invalid