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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5f16ed
sub esp, 0x68
lea eax, [0x6534c0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx + 0x10]
mov edx, dword [esp + 0x70]
mov dword [esp], edx
call ecx
lea edi, [esp + 0x2c]
lea esi, [esp + 4]
call fcn.0045f5b2
lea edi, [esp]
lea esi, [esp + 0x2c]
call fcn.0045f5b2
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
call fcn.005ec380
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x5f1651
mov ecx, dword [esp + 0x6c]
lea edx, [0x6d3c70]
cmp ecx, edx
jne 0x5f1274
mov dword [esp + 0x28], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea eax, [0x5f1700]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 4], ecx
call fcn.005ee010
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x5f126b
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
sub ecx, dword [eax + 0xc]
cmp ecx, 1
jne 0x5f1240
nop
mov dword [eax + 4], 0
mov dword [eax + 0xc], 0
mov byte [eax + 0x10], 0
jmp 0x5f1655
mov byte [eax + 0x10], 0
lea edx, [ecx - 1]
test edx, edx
jl 0x5f16d4
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 0xc]
sub ebx, ebp
cmp ebx, edx
jl 0x5f16d4
lea ecx, [ecx + ebp - 1]
mov dword [eax + 4], ecx
jmp 0x5f1655
mov eax, dword [esp + 0x38]
jmp 0x5f1655
lea edx, [0x6d3b98]
cmp ecx, edx
jne 0x5f13ac
nop
mov eax, dword [esp + 0x70]
movzx ecx, byte [eax]
test cl, cl
je 0x5f16bc
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x14]
cmp ecx, 0x100
jle 0x5f12a8
mov ecx, 0x100
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.004089f0
mov eax, dword [esp + 0xc]
lea ecx, [0x6378a0]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x6d2edc]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
lea edx, [0x673939]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 8
lea edx, [esp + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004b5060
nop
mov eax, dword [esp + 0x70]
movzx ecx, byte [eax]
test cl, cl
je 0x5f16a4
mov eax, dword [eax + 0x10]
cmp eax, 0x100
jle 0x5f13a3
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
add eax, 0xffffff00
mov dword [esp], eax
call fcn.00408890
mov eax, dword [esp + 4]
lea ecx, [0x63e5e0]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x6d2edc]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
lea ecx, [0x6773c8]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0x13
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004b5060
mov eax, dword [esp + 0x38]
jmp 0x5f1655
lea edx, [0x6d3ca0]
cmp ecx, edx
jne 0x5f145d
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5f13e7
mov eax, dword [esp + 0x38]
mov dword [esp], eax
lea ecx, [0x673595]
mov dword [esp + 4], ecx
mov dword [esp + 8], 7
call fcn.00483980
mov eax, dword [esp + 0x70]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.00408890
mov eax, dword [esp + 4]
lea ecx, [0x63ef20]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x6d2edc]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
lea ecx, [0x673949]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 8
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004b5060
mov eax, dword [esp + 0x38]
jmp 0x5f1655
lea edx, [0x6d3c10]
cmp ecx, edx
jne 0x5f14f7
mov eax, dword [esp + 0x70]
test byte [eax], al
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
add eax, 0xc
mov dword [esp], eax
mov dword [esp + 4], 8
mov dword [esp + 8], 8
call fcn.004089f0
mov eax, dword [esp + 0xc]
lea ecx, [0x6378a0]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x6d2edc]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
lea ecx, [0x673991]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 8
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004b5060
mov eax, dword [esp + 0x38]
jmp 0x5f1655
lea edx, [0x6d3bb0]
cmp ecx, edx
jne 0x5f15ca
lea edi, [esp + 0x50]
xor eax, eax
call fcn.0045f0ba
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0xc]
mov dword [esp], edx
call fcn.00408890
mov ecx, dword [esp + 4]
lea edx, [0x63ef20]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x10]
mov dword [esp], edx
call fcn.00408890
mov ecx, dword [esp + 4]
lea edx, [0x649020]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x18]
mov ebx, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.004089f0
mov ecx, dword [esp + 0xc]
lea edx, [0x6378a0]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
lea ecx, [0x6d2edc]
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
lea edx, [0x67ef1c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x24
lea edx, [esp + 0x50]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 3
call fcn.004b5060
mov eax, dword [esp + 0x38]
jmp 0x5f1655
lea eax, [0x6d3c58]
cmp ecx, eax
jne 0x5f164b
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.00408890
mov eax, dword [esp + 4]
lea ecx, [0x649020]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x6d2edc]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
lea ecx, [0x674646]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0xb
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004b5060
mov eax, dword [esp + 0x38]
jmp 0x5f1655
mov eax, dword [esp + 0x38]
jmp 0x5f1655
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x5f1666
mov ecx, 5
lea eax, [0x67311a]
jmp 0x5f1698
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
sub edx, ebx
neg edx
sar edx, 0x1f
and edx, ebx
add edx, dword [eax]
mov dword [esp], 0
mov dword [esp + 4], edx
sub ecx, ebx
mov dword [esp + 8], ecx
call fcn.0044afd0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x68
ret
lea eax, [0x63eda0]
mov dword [esp], eax
lea eax, [0x6d2a70]
mov dword [esp + 4], eax
call fcn.00433470
lea eax, [0x63eda0]
mov dword [esp], eax
lea eax, [0x6d2a70]
mov dword [esp + 4], eax
call fcn.00433470
lea eax, [0x63eda0]
mov dword [esp], eax
lea eax, [0x6d29d8]
mov dword [esp + 4], eax
call fcn.00433470
nop
call fcn.0045dbb0
jmp fcn.005f1140