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

Disassembly:
sub esp, 0x68
push ebx
push ebp
mov ebp, edx
mov ebx, ecx
mov edx, dword [esp + 0x7c]
push edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
cmp edi, edx
je 0x40f34f
push esi
mov esi, dword [esp + 0x7c]
mov ebx, 0x24
movzx eax, word [edi]
cmp eax, 0x24
je 0x40f009
mov ecx, dword [esi + 0x10]
mov edx, eax
mov ebx, dword [esi + 0x14]
cmp ecx, ebx
jae 0x40efea
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp ebx, 7
jbe 0x40efd3
mov esi, dword [esi]
xor eax, eax
mov word [esi + ecx*2], dx
mov word [esi + ecx*2 + 2], ax
add edi, 2
mov esi, dword [esp + 0x7c]
jmp 0x40f269
push edx
mov byte [esp + 0x24], 0
mov ecx, esi
push dword [esp + 0x24]
push 1
call fcn.0040f600
mov esi, dword [esp + 0x7c]
add edi, 2
jmp 0x40f269
add edi, 2
cmp edi, edx
je 0x40f2f5
movzx ecx, word [edi]
cmp ecx, 0x24
jne 0x40f066
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x40f046
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 7
jbe 0x40f033
mov esi, dword [esi]
mov dword [esi + ecx*2], 0x24
add edi, 2
mov esi, dword [esp + 0x7c]
jmp 0x40f26e
push 0x24
mov byte [esp + 0x28], 0
mov ecx, esi
push dword [esp + 0x28]
push 1
call fcn.0040f600
add edi, 2
mov esi, dword [esp + 0x7c]
jmp 0x40f26e
cmp ecx, 0x60
jne 0x40f078
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x38]
push esi
push dword [ebp + 0x18]
jmp 0x40f088
cmp ecx, 0x27
jne 0x40f09e
mov edx, dword [ebp + 0x20]
lea ecx, [esp + 0x3c]
push esi
push dword [ebp + 0x24]
call fcn.0040da60
add esp, 8
add edi, 2
mov esi, dword [eax]
mov dword [esp + 0x7c], esi
jmp 0x40f26e
nop
cmp ecx, 0x26
jne 0x40f0fc
mov ecx, dword ss:[ebp + 0xc]
mov eax, 0x2aaaaaab
mov ebx, dword [ebp + 8]
add edi, 2
sub ecx, ebx
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40f269
movq xmm0, qword [ebx]
lea ecx, [esp + 0x40]
movq qword [esp + 0x48], xmm0
movq xmm0, xmm0
push esi
push dword [esp + 0x50]
movq qword [esp + 0x5c], xmm0
mov edx, dword [esp + 0x5c]
call fcn.0040da60
add esp, 8
mov esi, dword [eax]
mov dword [esp + 0x7c], esi
jmp 0x40f269
lea eax, ds:[ecx - 0x30]
cmp ax, 9
ja 0x40f28d
add edi, 2
lea ebx, [ecx - 0x30]
cmp edi, edx
je 0x40f13b
movzx eax, word ds:[edi]
mov edx, eax
add eax, 0xffffffd0
cmp ax, 9
ja 0x40f13b
lea ebx, [ebx + ebx*4]
mov byte [esp + 0x13], 1
mov eax, edx
lea ebx, [ebx - 0x18]
add edi, 2
lea ebx, [eax + ebx*2]
jmp 0x40f140
mov byte [esp + 0x13], 0
test ebx, ebx
jne 0x40f20b
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x40f16b
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 7
jbe 0x40f161
mov eax, dword [esi]
mov ebx, 0x24
mov dword [eax + ecx*2], ebx
jmp 0x40f184
push 0x24
mov byte [esp + 0x2c], 0
mov ecx, esi
push dword [esp + 0x2c]
push 1
call fcn.0040f600
mov ebx, 0x24
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x40f1a6
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 7
jbe 0x40f19d
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x30
jmp 0x40f1ba
push 0x30
mov byte [esp + 0x30], 0
mov ecx, esi
push dword [esp + 0x30]
push 1
call fcn.0040f600
cmp byte ds:[esp + 0x13], 0
je 0x40f05d
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x40f1ed
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 7
jbe 0x40f1dd
mov esi, dword [esi]
mov dword [esi + ecx*2], 0x30
mov esi, dword [esp + 0x7c]
jmp 0x40f26e
push 0x30
mov byte [esp + 0x34], 0
mov ecx, esi
push dword [esp + 0x34]
push 1
call fcn.0040f600
mov esi, dword [esp + 0x7c]
jmp 0x40f26e
mov ecx, dword [esp + 0x14]
mov eax, 0x2aaaaaab
mov ebp, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
sub ecx, ebp
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x40f265
lea eax, [ebx + ebx*2]
lea ecx, [eax*4]
movq xmm0, qword [ecx + ebp]
lea ecx, [esp + 0x44]
movq qword [esp + 0x60], xmm0
movq xmm0, xmm0
push esi
push dword [esp + 0x68]
movq qword [esp + 0x74], xmm0
mov edx, dword [esp + 0x74]
call fcn.0040da60
add esp, 8
mov esi, dword [eax]
mov dword [esp + 0x7c], esi
mov ebp, dword [esp + 0x14]
mov ebx, 0x24
mov edx, dword [esp + 0x84]
cmp edi, edx
jne 0x40efb2
mov ecx, dword [esp + 0x18]
mov eax, ecx
mov dword [ecx], esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x68
ret
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x40f2b0
lea eax, ds:[ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 7
jbe 0x40f2a7
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x24
jmp 0x40f2c5
push 0x24
mov byte [esp + 0x38], 0
mov ecx, esi
push dword [esp + 0x38]
push 1
call fcn.0040f600
mov ecx, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
movzx edx, word [edi]
cmp ecx, ebx
jb 0x40efc6
push edx
mov byte [esp + 0x20], 0
mov ecx, esi
push dword [esp + 0x20]
push 1
call fcn.0040f600
mov esi, dword [esp + 0x7c]
add edi, 2
jmp 0x40f269
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x40f327
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 7
jbe 0x40f30c
mov esi, dword [esi]
mov ebx, dword [esp + 0x18]
mov dword [esi + ecx*2], 0x24
mov eax, dword [esp + 0x7c]
pop esi
pop edi
mov dword [ebx], eax
mov eax, ebx
pop ebp
pop ebx
add esp, 0x68
ret
push 0x24
mov byte [esp + 0x20], 0
mov ecx, esi
push dword [esp + 0x20]
push 1
call fcn.0040f600
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x7c]
pop esi
pop edi
pop ebp
mov dword [ecx], eax
mov eax, ecx
pop ebx
add esp, 0x68
ret
mov eax, dword [esp + 0x78]
pop edi
mov dword [ebx], eax
mov eax, ebx
pop ebp
pop ebx
add esp, 0x68
ret