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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov edi, ecx
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [esp + 0x88], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
mov dword [esp + 0x10], 0x4a298c
pxor xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
xor ebx, ebx
mov dword [esp + 0x30], ebx
push 0x58
call fcn.0045e423
add esp, 4
mov dword [eax], 0x4a2c7c
pxor xmm0, xmm0
movdqu xmmword [eax + 4], xmm0
movdqu xmmword [eax + 0x14], xmm0
movdqu xmmword [eax + 0x28], xmm0
movdqu xmmword [eax + 0x38], xmm0
movdqu xmmword [eax + 0x44], xmm0
mov dword [esp + 0x34], eax
push 0x38
call fcn.0045e423
add esp, 4
mov dword [eax], 0x4a2c8c
xorps xmm1, xmm1
movups xmmword [eax + 4], xmm1
pxor xmm0, xmm0
movq qword [eax + 0x14], xmm0
movups xmmword [eax + 0x20], xmm1
movq qword [eax + 0x30], xmm0
mov dword [esp + 0x38], eax
push 0x50
call fcn.0045e423
add esp, 4
mov esi, eax
mov dword [esp + 0xc], eax
mov dword [eax], 0x4a2c9c
pxor xmm0, xmm0
movdqu xmmword [eax + 0xc], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x30], xmm0
pxor xmm0, xmm0
movq qword [eax + 0x40], xmm0
mov dword [esp + 0x3c], eax
push 0x1c
call fcn.0045e423
add esp, 4
mov dword [eax], 0x4a2cac
pxor xmm0, xmm0
movdqu xmmword [eax + 4], xmm0
pxor xmm0, xmm0
movq qword [eax + 0x14], xmm0
mov dword [esp + 0x40], eax
push 0x48
call fcn.0045e423
add esp, 4
mov dword [eax], 0x4a2cbc
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x28], ebx
mov byte [eax + 0x30], bl
pxor xmm0, xmm0
movdqu xmmword [eax + 4], xmm0
movdqu xmmword [eax + 0x14], xmm0
movdqu xmmword [eax + 0x34], xmm0
mov dword [esp + 0x44], eax
mov byte [esp + 0x48], bl
mov dword [esp + 0x54], ebx
pxor xmm0, xmm0
movq qword [esp + 0x4c], xmm0
movsd xmm0, qword [edi]
movsd qword [esp + 0x18], xmm0
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov edx, eax
or edx, ecx
je 0x40fbf8
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov eax, 0x22
mov ecx, eax
or ecx, 0x10
mov dword [esp + 0x58], ecx
mov ecx, dword [edi + 0x10]
mov ebx, dword [esp + 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [edi + 0x18]
mov dword [ebx + 8], ecx
mov dword [ebx + 0x48], 6
cmp byte [edi + 0x20], 0
je 0x40faaa
mov byte [esp + 0x48], 1
or eax, 0x210
mov dword [esp + 0x58], eax
xor eax, eax
dec eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
xorps xmm0, xmm0
lea edi, [esp + 0x78]
movsd qword [edi], xmm0
mov dword [edi + 8], 0
push edi
call fcn.0040fc10
add esp, 4
test al, al
jne 0x40fb90
cmp byte [esp + 0x83], 0
js 0x40fb7f
mov esi, dword [ebp + 8]
lea ebx, [esp + 0x6c]
lea edi, [esp + 0x10]
mov ecx, edi
push ebx
call fcn.0044d450
mov ecx, edi
call fcn.0044d5e0
mov edx, ebx
movzx ebx, byte [ebx + 0xb]
test bl, bl
jns 0x40fb16
mov ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
cmp dword [esi + 8], 0
jne 0x40fb72
mov edi, dword [esi]
mov eax, dword [edi + 0xc]
lea esi, [eax + ebx]
cmp esi, dword [edi + 8]
ja 0x40fbea
test ebx, ebx
jne 0x40fb65
mov dword [edi + 0xc], esi
mov eax, dword [ebp + 8]
add dword [eax + 0x10], ebx
cmp byte [esp + 0x77], 0
jns 0x40fb4d
push dword [esp + 0x6c]
call fcn.0045e41e
add esp, 4
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.00461246
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
push ebx
push edx
push eax
call fcn.00462360
add esp, 0xc
jmp 0x40fb31
mov ecx, esi
mov edi, edx
call fcn.004418a0
mov edx, edi
jmp 0x40fb1c
push dword [esp + 0x78]
call fcn.0045e41e
add esp, 4
jmp 0x40faea
add esi, 0xc
cmp byte [ebx + 0x17], 0
movzx eax, byte [esp + 0x83]
js 0x40fbd3
test al, al
js 0x40fbc2
mov eax, dword [esp + 0x80]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x78]
movsd qword [esi], xmm0
or byte [ebx + 0x48], 0x20
jmp 0x40fadc
mov ecx, esi
push dword [esp + 0x7c]
push dword [esp + 0x7c]
call fcn.004045b0
jmp 0x40fbb9
test al, al
cmovs eax, dword [esp + 0x7c]
cmovs edi, dword [esp + 0x78]
mov ecx, esi
push eax
push edi
call fcn.00404640
jmp 0x40fbb9
mov ecx, edi
push ebx
push edx
call fcn.00453540
jmp 0x40fb34
mov eax, 2
jmp 0x40fa76