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

Disassembly:
push 0xffffffffffffffff
push 0x10081160
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10097288]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x7c]
xor ebp, ebp
mov edi, dword [esp + 0x78]
xor ebx, ebx
mov esi, dword [esp + 0x74]
mov cl, byte [eax + 0x5c]
mov eax, dword [eax]
mov esi, dword [esi]
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
mov byte [esp + 0x30], cl
mov ecx, edi
mov dword [esp + 0x28], esi
call dword [eax + 4]
test eax, eax
jle 0x10041e97
lea ecx, [ecx]
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 0xc]
mov esi, eax
mov ecx, edi
mov eax, dword [edi]
push ebx
call dword [eax + 8]
cmp eax, esi
jge 0x10041e87
inc ebp
mov eax, dword [edi]
mov ecx, edi
inc ebx
call dword [eax + 4]
cmp ebx, eax
jl 0x10041e70
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push 0
push dword [esi + 0x18]
inc eax
cdq
push edx
push eax
call fcn.1007f6f0
push 0
push dword [esi + 0x14]
push edx
push eax
call fcn.1007f6f0
mov esi, eax
mov ecx, edx
mov eax, ebp
cdq
push edx
push eax
push ecx
push esi
call fcn.1007f6f0
mov dword [0x1009b7b0], eax
mov ecx, edi
mov eax, dword [edi]
mov ebx, 1
mov dword [0x1009b7b4], edx
call dword [eax + 4]
mov ebp, dword [esp + 0x7c]
cmp eax, ebx
jle 0x10041f3f
cmp dword [ebp + 0x58], 0
je 0x10041f33
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 0xc]
mov edx, dword [edi]
mov ecx, edi
push ebx
mov esi, eax
call dword [edx + 8]
cmp eax, esi
jge 0x10041f33
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lea ecx, [esi - 1]
imul esi, edx
shr ecx, 1
lea eax, [edx - 1]
shr eax, 1
inc ecx
inc eax
imul ecx, eax
mov eax, dword [esp + 0x2c]
inc eax
sub esi, ecx
imul esi, eax
sub dword [0x1009b7b0], esi
sbb dword [0x1009b7b4], 0
mov eax, dword [edi]
mov ecx, edi
inc ebx
call dword [eax + 4]
cmp ebx, eax
jl 0x10041ee4
mov eax, dword [0x1009b7b0]
xorps xmm0, xmm0
or eax, dword [0x1009b7b4]
movlpd qword [0x1009b7a0], xmm0
jne 0x10041f75
mov dword [0x1009b7a0], 1
mov dword [0x1009b7a4], eax
mov dword [0x1009b7b0], 1
mov dword [0x1009b7b4], eax
xor eax, eax
mov byte [esp + 0x44], 0xff
mov word [esp + 0x46], ax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.1000a530
mov dword [esp + 0x6c], 0
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
lea ecx, [esp + 0x54]
mov dword [esp + 0x44], 0
push ecx
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call fcn.100101c0
mov byte [esp + 0x6c], 2
mov eax, dword [esp + 0x54]
test eax, eax
je 0x10041ff4
push eax
call fcn.1006f76a
add esp, 4
mov eax, dword [esp + 0x1c]
xor esi, esi
mov bl, byte [esp + 0x30]
mov dword [esp + 0x24], esi
mov eax, dword [eax + 0xc]
mov dword [esp + 0x40], eax
cmp bl, 2
jne 0x10042176
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x18]
mov edi, ecx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x38], eax
lea eax, [esi + 1]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, edi
jb 0x1004204d
mov eax, esi
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, dword [esp + 0x38]
jae 0x10042050
inc esi
jmp 0x10042022
lea eax, [esi - 0xd]
xor ecx, ecx
test eax, eax
mov ebp, edi
cmovs eax, ecx
xor esi, esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
lea ebx, [ebx]
lea eax, [esi + 1]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, ebp
jb 0x1004209b
mov eax, esi
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, dword [esp + 0x38]
jae 0x1004209e
inc esi
jmp 0x10042070
test esi, esi
je 0x10042101
mov ebx, dword [esp + 0x24]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
cmp ebx, eax
jle 0x100420d9
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 4]
mov ecx, edx
shr ecx, 1
sub edx, ecx
mov dword [eax + 4], ecx
add dword [eax + 8], edx
mov ecx, eax
call fcn.10040a90
mov eax, dword [esp + 0x38]
push ebx
push esi
inc eax
push eax
jmp 0x100420f8
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 4]
mov eax, ecx
shr eax, 1
sub ecx, eax
mov dword [edx + 4], ecx
mov ecx, edx
call fcn.10040a90
mov eax, dword [esp + 0x38]
push ebx
push eax
push 0
lea ecx, [esp + 0x48]
call fcn.10041bf0
mov eax, dword [esp + 0x28]
xor esi, esi
mov ecx, dword [eax + 0x18]
mov edi, ecx
mov eax, dword [eax + 0x14]
mov ebp, eax
lea ebx, [esi + 1]
mov eax, ebx
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, edi
jb 0x1004213c
mov eax, esi
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, ebp
jae 0x10042140
mov esi, ebx
jmp 0x10042111
mov ebp, dword [esp + 0x7c]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x78]
inc eax
mov edx, dword [esp + 0x20]
push ebp
push ecx
mov ecx, dword [esp + 0x24]
push eax
push esi
lea eax, [esp + 0x54]
push eax
push edi
push dword [esp + 0x8c]
call fcn.10044070
mov esi, dword [esp + 0x40]
add esp, 0x1c
mov bl, byte [esp + 0x30]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x100421a3
cmp ecx, 1
mov edx, 0x10088603
mov eax, 0x1008c030
cmovle eax, edx
push eax
push ecx
push 0x1008c034
push 3
call fcn.100520e0
mov ecx, dword [esp + 0x3c]
add esp, 0x10
movzx ebx, bl
mov eax, ebx
dec eax
je 0x100421d3
dec eax
jne 0x100421f6
push ebp
push ecx
push ecx
push esi
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x54]
push eax
push edi
push dword [esp + 0x8c]
lea edx, [esp + 0x37]
mov ecx, esi
call fcn.10044750
add esp, 0x1c
jmp 0x100421fa
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x44]
push ebp
push ecx
push eax
push edi
push dword [esp + 0x84]
lea edx, [esp + 0x2f]
mov ecx, esi
call fcn.10044520
add esp, 0x14
jmp 0x100421fa
mov esi, dword [esp + 0x1c]
push 0x1008c064
push 3
call fcn.10052110
push dword [esp + 0x48]
push 0x1008c068
push 3
call fcn.100520e0
add esp, 0x14
cmp byte [esp + 0x30], 2
jne 0x10042237
mov eax, dword [esi + 0xc]
sub eax, dword [esp + 0x40]
push eax
push 0x1008c07c
push 3
call fcn.100520e0
add esp, 0xc
call fcn.100705d7
add eax, 0x20
push eax
call fcn.10070766
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x48]
mov esi, dword [esi + 0xc]
add esp, 4
push dword [esp + 0x30]
push eax
push edi
call fcn.100449c0
mov eax, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [eax + 0xc]
sub eax, esi
push eax
push 0x1008c094
push 3
call fcn.100520e0
add esp, 0xc
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
dec ebx
je 0x100422bc
dec ebx
jne 0x100422db
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ebp
push ecx
mov ecx, dword [esp + 0x24]
push ebx
push eax
lea eax, [esp + 0x54]
push eax
push edi
push dword [esp + 0x8c]
call fcn.10044070
add esp, 0x1c
jmp 0x100422db
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x44]
push ebp
push ecx
mov ecx, dword [esp + 0x24]
push eax
push edi
push dword [esp + 0x84]
call fcn.10044b80
add esp, 0x14
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x10042323
mov edi, dword [esp + 0x48]
mov esi, ebx
cmp ebx, edi
je 0x1004231a
lea ecx, [ecx]
mov eax, dword [esi]
test eax, eax
je 0x10042313
push eax
call fcn.1006f76a
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
add esi, 0xc
cmp esi, edi
jne 0x100422f0
push ebx
call fcn.1006f76a
add esp, 4
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret