Function at 0x10040fd0
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 0x10041057
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 0x10041047
inc ebp
mov eax, dword [edi]
mov ecx, edi
inc ebx
call dword [eax + 4]
cmp ebx, eax
jl 0x10041030
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 0x100410ff
cmp dword [ebp + 0x58], 0
je 0x100410f3
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 0x100410f3
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 0x100410a4
mov eax, dword [0x1009b7b0]
xorps xmm0, xmm0
or eax, dword [0x1009b7b4]
movlpd qword [0x1009b7a0], xmm0
jne 0x10041135
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 0x100411b4
push eax
call fcn.1006f76a
add esp, 4
mov eax, dword [esp + 0x1c]
push dword [eax]
call fcn.100701b4
mov bl, byte [esp + 0x34]
xor esi, esi
add esp, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], esi
cmp bl, 2
jne 0x10041345
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x14]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x38], eax
nop
lea eax, [esi + 1]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, edi
jb 0x1004121b
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 0x1004121e
inc esi
jmp 0x100411f0
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 eax, [esi + 1]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, ebp
jb 0x10041263
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 0x10041266
inc esi
jmp 0x10041238
test esi, esi
je 0x100412c9
mov ebx, dword [esp + 0x24]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
cmp ebx, eax
jle 0x100412a1
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.100409c0
mov eax, dword [esp + 0x38]
push ebx
push esi
inc eax
push eax
jmp 0x100412c0
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.100409c0
mov eax, dword [esp + 0x38]
push ebx
push eax
push 0
lea ecx, [esp + 0x48]
call fcn.10040db0
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 esp, [esp]
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 0x1004130b
mov eax, esi
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
cmp edx, ebp
jae 0x1004130f
mov esi, ebx
jmp 0x100412e0
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.10042870
mov esi, dword [esp + 0x40]
add esp, 0x1c
mov bl, byte [esp + 0x30]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x10041372
cmp ecx, 1
mov edx, 0x100885f3
mov eax, 0x1008be9c
cmovle eax, edx
push eax
push ecx
push 0x1008bf14
push 3
call fcn.100520e0
mov ecx, dword [esp + 0x3c]
add esp, 0x10
movzx ebx, bl
mov eax, ebx
dec eax
je 0x100413a2
dec eax
jne 0x100413c5
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.10042f50
add esp, 0x1c
jmp 0x100413c9
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.10042d20
add esp, 0x14
jmp 0x100413c9
mov esi, dword [esp + 0x1c]
push 0x1008bf44
push 3
call fcn.10052110
push dword [esp + 0x48]
push 0x1008bf48
push 3
call fcn.100520e0
add esp, 0x14
cmp byte [esp + 0x30], 2
jne 0x1004140d
push dword [esi]
call fcn.100701b4
sub eax, dword [esp + 0x44]
add esp, 4
push eax
push 0x1008bf5c
push 3
call fcn.100520e0
add esp, 0xc
call fcn.100705d7
add eax, 0x20
push eax
call fcn.10070766
add esp, 4
push dword [esi]
call fcn.100701b4
mov edx, dword [esp + 0x24]
add esp, 4
mov esi, eax
lea eax, [esp + 0x44]
push dword [esp + 0x30]
push eax
push edi
call fcn.100431c0
mov eax, dword [esp + 0x28]
add esp, 0xc
push dword [eax]
call fcn.100701b4
add esp, 4
sub eax, esi
push eax
push 0x1008bf74
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 0x100414a2
dec ebx
jne 0x100414c1
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.10042870
add esp, 0x1c
jmp 0x100414c1
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.10043380
add esp, 0x14
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x10041506
mov edi, dword [esp + 0x48]
mov esi, ebx
cmp ebx, edi
je 0x100414fd
mov eax, dword [esi]
test eax, eax
je 0x100414f6
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 0x100414d3
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