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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59843b
sub esp, 0x70
mov eax, dword [esp + 0x74]
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov edx, dword [ecx + 0x64]
mov ebx, dword [ecx + 0x68]
movzx ebp, byte [0x7a0668]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x5983ed
movzx edx, byte [eax + 0x41]
test dl, dl
jne 0x5983d2
mov byte [eax + 0x41], 1
mov edx, dword [esp + 0x78]
mov ebx, dword [edx]
movzx ebx, byte [ebx + 2]
test bl, 1
je 0x598386
mov dword [esp], edx
call fcn.0058e500
mov eax, dword [esp + 8]
test eax, eax
jg 0x598336
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x598267
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.0058e430
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test eax, eax
jle 0x598267
mov dword [esp + 0x34], eax
xor edx, edx
jmp 0x59818f
mov ebx, dword [esp + 0x48]
add ebx, 0x14
mov ecx, ebx
mov edx, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x48], ecx
lea edi, [esp + 0x5c]
mov esi, ecx
call fcn.0045e58e
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00592be0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.005815c0
movzx eax, byte [esp + 8]
test al, al
je 0x5982e6
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x48]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x44], edx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x2c], ebx
lea ebp, [0x605100]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
call fcn.0040fbb0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [eax + 8]
lea ebp, [ecx + 1]
cmp ebx, ebp
jb 0x598295
lea ebx, [ecx + 1]
mov dword [eax + 4], ebx
lea ebx, [edx + ecx*8 + 4]
mov ebp, dword [esp + 0x2c]
mov dword [ebx], ebp
mov ebx, dword [0x7a0970]
lea edi, [edx + ecx*8]
test ebx, ebx
jne 0x59828a
mov eax, dword [esp + 0x44]
mov dword [edi], eax
mov eax, dword [esp + 0x30]
inc eax
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jg 0x598184
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00597780
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x70
ret
mov eax, dword [esp + 0x44]
call fcn.0045de10
jmp 0x598256
mov dword [esp + 0x40], eax
lea eax, [0x5db180]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.00445150
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x40]
mov dword [edi + 8], edx
mov edx, dword [0x7a0970]
test edx, edx
jne 0x5982df
mov dword [edi], eax
mov edx, eax
mov eax, edi
jmp 0x598233
call fcn.0045de10
jmp 0x5982d6
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [0x65ee38]
mov dword [esp], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.004092a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x70
ret
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [0x65ee38]
mov dword [esp], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.004092a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x70
ret
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [0x65ee38]
mov dword [esp], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.004092a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x70
ret
lea eax, [0x65ee24]
mov dword [esp + 0x7c], eax
lea eax, [0x6273f8]
mov dword [esp + 0x80], eax
add esp, 0x70
ret
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edx
call fcn.0058f530
mov eax, dword [esp + 0x28]
cmp dword [esp + 4], eax
setne al
mov ecx, dword [esp + 0x24]
cmp dword [esp], ecx
setne cl
or eax, ecx
test al, al
jne 0x598422
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x38]
jmp 0x59811a
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65be50]
mov dword [esp + 4], eax
call fcn.00431a30
nop
call fcn.0045c8b0
jmp fcn.005980e0