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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x594cc1
sub esp, 0x44
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x7c]
cmp eax, ecx
jne 0x594ca7
mov edx, dword [esp + 0x64]
cmp ecx, edx
jne 0x594ca7
mov ebx, dword [esp + 0x70]
cmp ebx, ecx
jne 0x594ca7
mov ebp, dword [esp + 0x50]
cmp ecx, ebp
jg 0x594c61
ja 0x594ca0
mov esi, dword [esp + 0x48]
mov dword [esp + 0x40], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebp
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.00594000
xor eax, eax
xor ecx, ecx
jmp 0x594ac2
mov edx, dword [esp + 0x30]
inc edx
mov ecx, eax
mov eax, edx
mov edx, dword [esp + 0x7c]
cmp eax, edx
jge 0x594bf6
mov ebx, dword [esp + 0x64]
cmp eax, ebx
jae 0x594c99
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + eax*4]
mov ebx, dword [esp + 0x40]
mov dword [esp], ebx
mov ebp, dword [esp + 0x28]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x2c]
mov dword [esp + 8], esi
mov edi, dword [esp + 0x54]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
call fcn.005a3be0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
test ecx, ecx
jbe 0x594c92
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
mov edx, dword [eax]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0xc], ebp
mov esi, dword [esp + 0x70]
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x78]
imul edx, edi
mov dword [esp + 0x18], edx
call fcn.005a3be0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x2c]
lea edx, [ecx - 1]
neg edx
sar edx, 0x1f
and edx, 4
mov ebx, dword [esp + 0x40]
add edx, ebx
mov ebp, dword [esp + 0x28]
lea esi, [ebp - 1]
cmp ebp, esi
jle 0x594bf2
mov dword [esp], ebx
mov dword [esp + 4], edx
shl esi, 2
mov dword [esp + 8], esi
call fcn.0044e470
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov edx, dword [esp + 0x34]
lea ebx, [ecx + edx]
mov ebp, dword [esp + 0x7c]
lea esi, [ebp - 1]
mov edi, dword [esp + 0x28]
cmp esi, edi
jae 0x594c8b
mov esi, dword [esp + 0x40]
mov dword [esi + ebp*4 - 4], ebx
cmp ecx, eax
jae 0x594be7
mov eax, 1
jmp 0x594ab9
cmp ebx, edx
jb 0x594bdd
xor eax, eax
jmp 0x594ab9
mov esi, ebp
jmp 0x594b9a
test ecx, ecx
jne 0x594c1f
mov eax, dword [esp + 0x40]
mov dword [esp + 0x80], eax
and al, 0x80
add byte [eax], al
add byte [ebx - 0x76d7dbbc], cl
test byte [esp + eax*4], ah
add byte [eax], al
add byte [ebx - 0x76d3dbbc], cl
test byte [eax + ecx*4], ah
add byte [eax], al
invalid
add esp, 0x44
ret
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x20], ebx
call fcn.005a3a60
jmp 0x594bfa
lea eax, [0x7cf6e0]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [ecx + 4]
mov dword [esp + 8], eax
call fcn.00439eb0
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
jmp 0x594a97
call fcn.00426a70
ud2
call fcn.00426a70
ud2
call fcn.00426a70
ud2
call fcn.00426ad0
ud2
lea eax, [0x7cfea0]
mov dword [esp], eax
lea eax, [0x9b0108]
mov dword [esp + 4], eax
call fcn.004278c0
ud2
call fcn.0044c200
jmp fcn.00594a40