Function at 0x4139f7
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 0x413a20
cmp dword [ebp + 0x14], 0
jne 0x413a20
mov dword [ebp + 8], 0xc000000d
jmp 0x413bae
cmp eax, 4
jne 0x413a2b
cmp dword [ebp + 0x18], 0
je 0x413a14
push 0x80
push 0
push ebx
call fcn.0044db40
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 0x413a78
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 0x413b70
add ecx, 0xfffffffd
cmp ecx, 1
ja 0x413b67
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.00443810
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 0x413b2f
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x1c]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x413b24
cmp eax, dword [ebp + 0x10]
jbe 0x413b24
mov dword [ebp + 0x10], eax
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [esi + 0x1c]
jb 0x413b0e
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 0x413bae
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 0x413bae
mov dword [ebp + 8], 0xc00000bb
jmp 0x413bae
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