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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x34]
cmp eax, dword [ecx + 8]
jbe 0x597659
sub esp, 0xb4
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx + 0x20]
test edx, edx
jne 0x597623
lea eax, [0x7e7180]
mov dword [esp], eax
call fcn.00409f80
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x24]
mov edx, dword [esp + 4]
mov ebx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jle 0x59736f
mov dword [esp + 0x80], edx
mov dword [esp + 0x50], ecx
xor ebp, ebp
jmp 0x597315
mov ebx, dword [esp + 0x48]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x4c]
cmp edx, ecx
jge 0x5975ec
mov dword [esp + 0x48], edx
movzx ecx, word [eax + edx*2]
mov ebx, dword [esp + 0xbc]
mov ebp, dword [ebx + 0x14]
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
mov word [esp], cx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
call fcn.0058aeb0
movzx eax, byte [esp + 0x10]
test al, al
je 0x597211
mov eax, 1
test al, al
je 0x5975e0
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5975b5
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx]
test edx, edx
jle 0x5972ef
mov dword [esp + 0x4c], edx
xor ebp, ebp
jmp 0x5972aa
add ebx, 0xc
mov edx, dword [esp + 0xbc]
mov edx, esi
mov ebp, eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x34], ebp
mov esi, edx
mov edx, dword [ebx + 8]
mov edi, edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x40], edx
mov edx, dword [ebx]
mov dword [esp + 0x68], edx
mov edx, dword [ecx + 0x2c]
test ebp, ebp
jne 0x597459
test edx, edx
je 0x597459
mov edi, edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
test edx, edx
jg 0x5973a5
lea eax, [ebp + 1]
cmp eax, esi
jl 0x597295
mov eax, dword [esp + 0x38]
inc eax
mov edx, dword [esp + 0x50]
cmp eax, edx
jge 0x59736f
mov ebx, dword [esp + 0x7c]
add ebx, 0x30
mov ecx, edx
mov edx, dword [esp + 0x80]
mov ebp, eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x38], ebp
lea edi, [esp + 0x84]
mov esi, ebx
call fcn.0044f668
mov ecx, dword [0xb91180]
test ecx, ecx
jne 0x5975f3
mov edi, edx
lea esi, [esp + 0x84]
call fcn.0044f668
movzx ecx, word [eax + 0x20]
mov word [esp], cx
mov dword [esp + 4], edx
call fcn.00586d60
mov eax, dword [esp + 8]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x4c], ecx
xor edx, edx
jmp 0x597220
lea eax, [0x7e7180]
mov dword [esp], eax
call fcn.00409f80
mov eax, dword [esp + 4]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
add esp, 0xb4
ret
mov dword [esp + 0x48], edx
mov dword [esp + 0x70], edi
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
jmp 0x5973ce
mov edx, dword [esp + 0x6c]
add edx, 0xc
mov edi, dword [esp + 0x70]
mov dword [esp + 0x44], eax
mov eax, edx
mov dword [esp + 0x6c], eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
nop
mov ebp, dword [edi + 0x38]
mov esi, dword [edi + 0x34]
mov edi, dword [edi + 0x30]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
call fcn.00401fe0
movzx eax, byte [esp + 0x18]
test al, al
jne 0x59742e
mov eax, dword [esp + 0x44]
inc eax
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jl 0x5973bd
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x4c]
jmp 0x5972e8
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
add esp, 0xb4
ret
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp + 8], edi
call fcn.005735c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x5974a2
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x4c]
mov edx, eax
mov eax, dword [esp + 0xbc]
jmp 0x5972d9
mov dword [esp + 0x64], ecx
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov byte [esp + 4], 0x50
call fcn.0058e890
nop
mov eax, dword [esp + 0x38]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp + 8], 0xa
call fcn.0045ee70
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x5c], edx
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp], 0
lea edx, [0x82c00a]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x33
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
lea edx, [0x8141d2]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
call fcn.0043dc90
nop
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x60], ecx
lea edx, [0x7c34e0]
mov dword [esp], edx
call fcn.00409f80
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [edi + 4], eax
mov eax, dword [0xb91180]
test eax, eax
jne 0x5975aa
mov eax, dword [esp + 0x60]
mov dword [edi], eax
mov dword [esp + 0xc0], 0
lea eax, [0x8b3870]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], edi
add esp, 0xb4
ret
mov eax, dword [esp + 0x60]
call fcn.0044f0d0
jmp 0x597584
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
add esp, 0xb4
ret
mov ecx, dword [esp + 0x80]
jmp 0x5972ef
xor eax, eax
jmp 0x597263
lea eax, [0x7e7180]
mov dword [esp], eax
mov dword [esp + 4], edx
lea eax, [esp + 0x84]
mov dword [esp + 8], eax
call fcn.004101b0
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0x80]
jmp 0x597347
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 4]
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
add esp, 0xb4
ret
call fcn.0044d880
jmp fcn.005971a0