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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
push edi
cmp eax, 2
je 0x40f767
cmp dword [ebp + 0x14], 0
jne 0x40f767
mov dword [ebp + 8], 0xc000000d
jmp 0x40f8f5
cmp eax, 4
jne 0x40f772
cmp dword [ebp + 0x18], 0
je 0x40f75b
push 0x80
push 0
push ebx
call fcn.00450c60
or edx, 0xffffffff
mov dword [ebx + 0x4c], edx
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x60], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 8]
add esi, 0x44
lea edi, [ebx + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsd dword es:[edi], dword [esi]
cmp dword [eax + 4], 2
jne 0x40f7bf
mov ecx, dword [eax + 0xc]
mov dword [ebx + 0x4c], ecx
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x3c]
and dword [ebp + 8], 0
cmp ecx, 2
je 0x40f8b7
add ecx, 0xfffffffd
cmp ecx, 1
ja 0x40f8ae
mov esi, dword [ebp + 0x10]
mov edi, dword [esi + 0x20]
xor eax, eax
push eax
push edi
push eax
push dword [esi + 0x1c]
mov dword [ebp - 4], edi
call fcn.00445a30
mov dword [ebx + 0x50], edi
and dword [ebp + 0x10], 0
and dword [ebp + 0x1c], 0
shr edi, 9
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
mov eax, dword [esi + 0x1c]
lea ecx, [edi + 7]
shr ecx, 3
mov dword [ebx + 0x54], eax
add ecx, 0x1ff
mov dword [ebx + 0x58], edi
and ecx, 0xfffffe00
mov dword [ebx + 0x5c], ecx
mov edx, 0x200
mov dword [ebx + 0x78], edx
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x10]
mov dword [ebx + 0x30], edi
mov eax, dword [eax + 0x14]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x48], eax
cmp dword [esi + 0x1c], 0
jbe 0x40f876
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x1c]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x40f86b
cmp eax, dword [ebp + 0x10]
jbe 0x40f86b
mov dword [ebp + 0x10], eax
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [esi + 0x1c]
jb 0x40f855
mov eax, dword [ebp + 0x10]
mul edx
mov edi, eax
xor eax, eax
add edi, ecx
adc edx, eax
add edi, dword [ebp - 4]
adc edx, eax
mov eax, dword [ebp + 0xc]
add edi, 0xffffffff
adc edx, 0xffffffff
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], edx
cmp dword [eax + 0x3c], 4
jne 0x40f8f5
mov eax, dword [ebp + 0x18]
add esi, 0x28
mov dword [ebx], eax
lea edi, [ebx + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x40f8f5
mov dword [ebp + 8], 0xc00000bb
jmp 0x40f8f5
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
add ecx, 0xfffffe00
adc eax, edx
mov esi, ecx
add esi, edx
mov edi, eax
adc edi, edx
mov dword [ebx + 0x28], ecx
shrd ecx, eax, 0x15
mov edx, 0x200
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x40], esi
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x50], 0x200000
shr eax, 0x15
mov dword [ebx + 0x54], ecx
mov dword [ebx + 0x78], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x18