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

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
push edi
mov ecx, 0x10103106
call fcn.100d96c4
mov eax, dword [esi]
mov edi, dword [ebx + 0x2c]
mov dword [esp + 0x40], eax
movzx eax, word [ebx + 0xc4]
mov ecx, eax
cwde
mov dword [esp + 0x64], ecx
mov ecx, dword [ebx + 0x28]
add edi, ecx
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x60]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], eax
test ecx, ecx
jne 0x1005fe59
test edi, edi
jle 0x1005fe59
inc edi
mov eax, dword [esi + 0x6c]
mov ebp, dword [esi + 0x68]
lea eax, [eax + eax*4]
lea ecx, [eax*4 + 7]
mov eax, dword [ebx + 0x30]
and ecx, 0xfffffff8
sub eax, ecx
add ebp, ecx
and eax, 0xfffffff8
mov dword [esp + 0x38], ebp
cdq
mov ecx, esi
mov dword [esp + 0x20], eax
mov eax, edx
lea edx, [esp + 0x48]
mov dword [esp + 0x18], eax
call fcn.1005eb30
cmp byte [ebx + 0x14], 0
je 0x1005fea3
cmp byte [ebx + 0x15], 0
je 0x1005fea3
mov ecx, 0x80
jmp 0x1005fea5
xor ecx, ecx
mov eax, dword [esi + 0x98]
and eax, 0xffffff7f
or eax, ecx
mov dword [esi + 0x98], eax
cmp byte [ebx + 0xc7], 0
je 0x1005fecb
mov ecx, 0xa
cmp edi, ecx
cmovl edi, ecx
and eax, 0xfffffffc
mov dword [esp + 0x2c], 0
lea ecx, [edi + edi*4]
mov dword [esi + 0x98], eax
mov eax, dword [esp + 0x18]
xor edx, edx
shl ecx, 3
xorps xmm0, xmm0
cmp edx, eax
movlpd qword [esp + 0x78], xmm0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
jg 0x1005ff55
jl 0x1005ff03
cmp ecx, edx
ja 0x1005ff55
sub edx, ecx
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x78]
sbb eax, 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x18], eax
lea eax, [edx + ebp]
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x2c], eax
movlpd qword [esp + 0x58], xmm0
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
jmp 0x1005ff77
xor ebp, ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebp
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x58], ecx
mov ecx, dword [esp + 0x54]
lea ecx, [ecx + ecx*4]
shl ecx, 3
mov dword [esp + 0x20], ecx
xor ecx, ecx
cmp ecx, eax
jg 0x1005ffb1
jl 0x1005ff9a
cmp dword [esp + 0x20], edx
ja 0x1005ffb1
sub edx, dword [esp + 0x20]
sbb eax, 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
add eax, edx
jmp 0x1005ffd6
mov ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x44]
adc ebp, 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x78], ecx
xor eax, eax
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebp
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x48]
shl eax, 2
mov dword [esp + 0x58], eax
add eax, 7
mov dword [esp + 0x1c], 0
adc dword [esp + 0x1c], 0
and eax, 0xfffffff8
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], 0
cmp dword [esp + 0x1c], eax
jg 0x1006002d
jl 0x10060015
cmp dword [esp + 0x2c], edx
ja 0x1006002d
sub edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
sbb eax, dword [esp + 0x1c]
add ecx, edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], ecx
jmp 0x10060049
mov ecx, dword [esp + 0x2c]
add ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x1c]
adc ebp, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebp
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x5c], ecx
mov ecx, dword [esp + 0x50]
shl ecx, 2
mov dword [esp + 0x18], ecx
add dword [esp + 0x18], 7
mov dword [esp + 0x1c], 0
adc dword [esp + 0x1c], 0
and dword [esp + 0x18], 0xfffffff8
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x48], 0
cmp dword [esp + 0x1c], eax
jg 0x1006009e
jl 0x10060092
mov eax, dword [esp + 0x18]
cmp eax, edx
ja 0x100600a2
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x18]
add eax, edx
jmp 0x100600b8
mov eax, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], ecx
adc ebp, dword [esp + 0x1c]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebp
mov dword [esi + 0x60], eax
mov eax, ecx
or eax, ebp
je 0x10060150
push ebp
push ecx
mov ecx, dword [esp + 0x48]
call fcn.1003ee80
mov dword [esi + 0xc4], eax
add esp, 8
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x74], ebp
cmp byte [eax + 0x51], 0
jne 0x10060150
mov edx, dword [esi + 0x58]
lea ecx, [esp + 0x68]
push 0
push dword [esp + 0x40]
call fcn.1005fd60
mov edx, dword [esi + 0x64]
lea ecx, [esp + 0x70]
push 0
push dword [esp + 0x2c]
mov dword [esi + 0x58], eax
call fcn.1005fd60
mov edx, dword [esi + 0x5c]
lea ecx, [esp + 0x78]
push 0
push dword [esp + 0x6c]
mov dword [esi + 0x64], eax
call fcn.1005fd60
mov ebp, dword [esp + 0x4c]
lea ecx, [esp + 0x80]
mov edx, dword [esi + 0x60]
push 0
push ebp
mov dword [esi + 0x5c], eax
call fcn.1005fd60
add esp, 0x20
mov dword [esi + 0x60], eax
jmp 0x10060154
mov ebp, dword [esp + 0x34]
mov eax, dword [ebx + 0xd8]
mov dword [esi + 0x80], eax
movzx eax, byte [ebx + 0xc7]
mov dword [ebx + 0xd8], 0
mov ebx, dword [esp + 0x40]
shl eax, 2
xor eax, dword [esi + 0x98]
and eax, 0xc
xor dword [esi + 0x98], eax
cmp byte [ebx + 0x51], 0
je 0x1006019b
xor eax, eax
mov word [esi + 0x10], ax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
jmp 0x100601da
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov ecx, dword [esi + 0x64]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x64]
push 1
push ebx
mov word [esi + 0x10], ax
call fcn.1005f7b0
mov ecx, dword [esi + 0x58]
mov edx, edi
push 0x80
push ebx
mov dword [esi + 0x18], edi
call fcn.1005f7b0
push ebp
push 0
push dword [esi + 0x60]
call sub.VCRUNTIME140.dll_memset
add esp, 0x1c
pop edi
mov dword [esi + 0x14], 0x2df20da3
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x28], 0
mov word [esi + 0x92], 0xff02
mov dword [esi + 0x2c], 0
mov dword [esi + 0x20], 1
mov dword [esi + 0x30], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
pop esi
pop ebp
pop ebx
add esp, 0x74
ret