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

Disassembly:
sub esp, 0x74
mov eax, dword [0x10126008]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x24], edx
push edi
mov dword [esp + 0x38], ebx
mov edi, 0x2c
mov dword [esp + 0x34], 0
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x34]
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
mov ebp, dword [eax]
mov edx, ebp
mov dword [esp + 0x20], ebp
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005ea53
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1005ea40
jmp 0x1005ea5f
mov ebp, dword [ebp + 0x10]
inc ebp
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x20]
xor eax, eax
cmp word [esi + 0x28], ax
jne 0x1005eb07
cmp dword [ebp + 0x60], eax
jbe 0x1005eac9
lea eax, [esp + 0x20]
push eax
push 4
call fcn.1004ff30
add esp, 8
cmp byte [esi + 0x2b], 0
jne 0x1005eaa4
mov eax, dword [esi + 4]
push 0xa
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
test eax, eax
je 0x1005eaa4
cmp eax, 5
je 0x1005eac9
jmp 0x1005eb07
mov edx, dword [esp + 0x20]
mov ecx, esi
call fcn.1005d380
cmp byte [esi + 0x2b], 0
jne 0x1005eae3
mov eax, dword [esi + 4]
push 9
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
cmp byte [esi + 0x2b], 0
jne 0x1005eae3
mov eax, dword [esi + 4]
push 5
push 1
push 3
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
or eax, 0xffffffff
xor edi, edi
mov word [esi + 0x28], ax
nop dword [eax]
inc edi
lea edx, [esp + 0x3c]
push edi
push 1
mov ecx, esi
call fcn.1005e0f0
add esp, 8
cmp eax, 0xffffffff
je 0x1005eaf0
mov edi, eax
test eax, eax
jne 0x1005efb8
mov ebp, dword [esi + 0x44]
mov dword [esp + 0x2c], ebp
test ebp, ebp
jne 0x1005ec0e
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x5c], 0x82067f37
mov dword [esp + 0x60], 0x18e22d00
bswap eax
mov dword [esp + 0x64], eax
mov eax, ecx
bswap eax
mov dword [esp + 0x68], eax
test ecx, ecx
jne 0x1005eb57
lea eax, [esi + 0x54]
push eax
push 8
call fcn.1004ff30
add esp, 8
mov eax, dword [esi + 0x54]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x6c], eax
xor edx, edx
mov eax, dword [esi + 0x58]
xor edi, edi
mov dword [esp + 0x70], eax
nop dword [eax]
mov eax, dword [ecx]
add eax, edx
add edi, eax
mov eax, dword [ecx + 4]
add eax, edi
add ecx, 8
add edx, eax
lea eax, [esp + 0x74]
cmp ecx, eax
jb 0x1005eb70
mov eax, edi
mov byte [esi + 0x41], 0
bswap eax
mov dword [esp + 0x74], eax
mov eax, edx
bswap eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x24], eax
mov dword [esi + 0x50], edx
lea edx, [esp + 0x5c]
mov dword [esi + 0x4c], edi
mov eax, dword [esi + 8]
push 0
push 0
mov byte [esi + 0x2f], 1
mov ecx, dword [eax]
push 0x20
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1005efb6
cmp byte [esi + 0x30], al
je 0x1005ec0e
mov ecx, dword [esp + 0x94]
mov edx, dword [esi + 8]
sar ecx, 2
and ecx, 3
je 0x1005ec0c
mov eax, dword [edx]
push ecx
push edx
mov eax, dword [eax + 0x14]
call eax
mov edi, eax
add esp, 8
test edi, edi
je 0x1005ec0e
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.100f11c3
add esp, 0x74
ret
xor edi, edi
mov eax, dword [esi + 8]
xorps xmm0, xmm0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x54], eax
add eax, 0x18
mov dword [esp + 0x3c], eax
cdq
mov ecx, eax
mov dword [esp + 0x40], esi
mov eax, edx
movlpd qword [esp + 0x48], xmm0
push eax
push ecx
push 0
push ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], eax
call fcn.100f2a90
mov ecx, dword [esp + 0x90]
add eax, 0x20
mov ebp, edx
mov dword [esp + 0x14], eax
adc ebp, 0
test ebx, ebx
je 0x1005ed7f
cmp dword [esp + 0x18], 0
je 0x1005ed18
cmp dword [ebx + 0x10], 0
jne 0x1005ec8b
test ecx, ecx
jne 0x1005ed18
mov edx, dword [ebx + 0x18]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x20], 0
call fcn.1005e470
mov edi, dword [esp + 0x20]
add esp, 4
cmp edi, dword [esp + 0x18]
jb 0x1005ed0d
push dword [esp + 0x30]
lea eax, [edi - 1]
push dword [esp + 0x24]
push 0
push eax
call fcn.100f2a90
add eax, 0x38
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x68]
adc edx, 0
test eax, eax
je 0x1005ecd7
cmp edi, eax
jae 0x1005ecda
mov dword [esi + 0x68], edi
mov eax, dword [esi + 8]
push edx
push dword [esp + 0x20]
push dword [esp + 0x30]
mov ecx, dword [eax]
push dword [ebx + 4]
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1005efb6
mov eax, dword [esp + 0x14]
mov edx, 0xffbf
and word [ebx + 0x1c], dx
jmp 0x1005ed65
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x90]
inc dword [esp + 0x2c]
test ecx, ecx
je 0x1005ed2f
cmp dword [ebx + 0x10], 0
jne 0x1005ed2f
mov ecx, dword [esp + 0x8c]
jmp 0x1005ed31
xor ecx, ecx
push ebp
push eax
push ecx
mov edx, ebx
lea ecx, [esp + 0x4c]
call fcn.1005e6b0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1005efb6
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x20]
mov dword [esp + 0x34], ebx
adc ebp, dword [esp + 0x30]
or word [ebx + 0x1c], 0x40
mov dword [esp + 0x14], eax
mov ebx, dword [ebx + 0x10]
mov ecx, dword [esp + 0x90]
test ebx, ebx
jne 0x1005ec72
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x1005ef07
cmp dword [esi + 0x68], 0
je 0x1005eda2
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.1005e790
mov edi, eax
test edi, edi
jne 0x1005efb6
and dword [esp + 0x94], 3
je 0x1005eeb5
cmp byte [esi + 0x31], 0
je 0x1005ee9d
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x1005ede4
push ecx
call eax
add esp, 4
cmp eax, 0x20
jge 0x1005edd8
mov eax, 0x200
jmp 0x1005ede9
mov ecx, 0x10000
cmp eax, ecx
cmovg eax, ecx
jmp 0x1005ede9
mov eax, 0x1000
mov ebx, dword [esp + 0x14]
cdq
mov ecx, eax
add ecx, ebx
mov dword [esp + 0x14], ecx
mov ecx, edx
adc ecx, ebp
sub dword [esp + 0x14], 1
push edx
sbb ecx, 0
push eax
push ecx
push dword [esp + 0x20]
mov dword [esp + 0x28], ecx
call fcn.100f2ad0
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], ecx
sbb eax, edx
mov dword [esp + 0x4c], eax
cmp ecx, ebx
jne 0x1005ee36
mov dword [esp + 0x18], 1
cmp eax, ebp
je 0x1005ee3e
mov dword [esp + 0x18], 0
cmp ebp, eax
jg 0x1005ee96
jl 0x1005ee50
cmp ebx, ecx
jae 0x1005ee96
nop dword [eax + eax]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x40]
push ebp
push ebx
push dword [esp + 0x94]
call fcn.1005e6b0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1005efb6
mov eax, dword [esp + 0x3c]
cdq
add ebx, eax
adc ebp, edx
inc dword [esp + 0x24]
cmp ebp, dword [esp + 0x4c]
jl 0x1005ee50
jg 0x1005ee8e
cmp ebx, dword [esp + 0x48]
jb 0x1005ee50
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x18], 0
je 0x1005eeb5
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x94]
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
add esp, 8
mov edi, eax
cmp byte [esi + 0x2f], 0
je 0x1005ef07
mov ebp, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
test ebp, ebp
jl 0x1005ef07
jg 0x1005eecb
test ebx, ebx
jb 0x1005ef07
push dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push dword [esp + 0x24]
add eax, dword [esp + 0x34]
push 0
push eax
call fcn.100f2a90
add eax, 0x20
adc edx, 0
cmp edx, ebp
jl 0x1005eef7
jg 0x1005eef3
cmp eax, ebx
jbe 0x1005eef7
mov ebx, eax
mov ebp, edx
push ebp
push ebx
mov ecx, esi
call fcn.1005d880
add esp, 8
mov byte [esi + 0x2f], 0
mov ebp, dword [esp + 0x38]
mov ebx, dword [esi + 0x44]
test ebp, ebp
je 0x1005ef39
test edi, edi
jne 0x1005efb6
test byte [ebp + 0x1c], 0x40
je 0x1005ef32
push dword [ebp + 0x18]
inc ebx
mov ecx, esi
mov edx, ebx
call fcn.1005c970
add esp, 4
mov edi, eax
mov ebp, dword [ebp + 0x10]
test ebp, ebp
jne 0x1005ef12
test edi, edi
jne 0x1005efb6
nop dword [eax]
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x1005ef7a
dec eax
inc ebx
mov dword [esp + 0x24], eax
mov edx, ebx
mov eax, dword [esp + 0x34]
mov ecx, esi
push dword [eax + 0x18]
call fcn.1005c970
mov edi, eax
add esp, 4
test edi, edi
je 0x1005ef40
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.100f11c3
add esp, 0x74
ret
test edi, edi
jne 0x1005efb6
mov ecx, dword [esp + 0x28]
mov eax, ecx
sar eax, 0x10
and ecx, 0xff00
or eax, ecx
mov dword [esi + 0x44], ebx
mov word [esi + 0x42], ax
cmp dword [esp + 0x90], edi
je 0x1005efb6
mov eax, dword [esp + 0x8c]
mov ecx, esi
inc dword [esi + 0x3c]
mov dword [esi + 0x48], eax
call fcn.1005c730
mov dword [esi + 0xc], ebx
mov eax, edi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100f11c3
add esp, 0x74
ret