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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x98
mov edi, dword [esp + 0xac]
xor cl, 0
por mm0, mm0
ror edx, 0x20
xchg ecx, ecx
pand xmm1, xmm1
mov edi, edi
xor ecx, 0
and ch, 0xff
pand mm3, mm3
sub edx, 0
or ebp, ebp
add ebx, 0
por mm4, mm4
pand mm2, mm2
pand xmm7, xmm7
test edi, edi
js 0x40bded
mov ebx, edx
mov esi, ecx
je 0x40bdef
movzx eax, byte [0x6019e5]
xor ecx, ecx
mov edx, edi
call fcn.00499510
mov ebp, eax
test eax, eax
jne 0x40bdf4
ud2
mov ebp, 1
push edi
push ebx
push ebp
call fcn.004ef180
add esp, 0xc
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x10]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edi
mov byte [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 4
mov dword [esp + 0x40], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
mov word [esp + 0x64], 0
mov dword [esp + 0x44], 0x80000000
mov dword [esp + 0x68], 0
mov word [esp + 0x54], 0
mov word [esp + 0x78], 0
mov dword [esp + 0x10], 6
mov dword [esp + 0x18], 6
mov dword [esp + 0x20], 6
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], 0
call fcn.00498d00
mov edi, dword [esp + 0x7c]
mov eax, edi
neg eax
jno 0x40beb7
movsd xmm0, qword [esp + 0x80]
lea ecx, [esp + 0x10]
movsd qword [esi], xmm0
call fcn.004037c0
jmp 0x40c013
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x80]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x94]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x10]
mov dword [esp], eax
call fcn.004037c0
por mm0, mm0
lea ecx, [ecx]
pand mm0, mm0
por mm1, mm1
por xmm5, xmm5
mov edx, edx
test ebp, ebp
je 0x40bfca
mov dword [esp + 0xc], ebx
lea eax, [0x598702]
add eax, 0
xchg ebx, ebx
por mm4, mm4
ror ch, 8
xchg dh, dh
xchg cl, cl
pand mm2, mm2
or bl, 0
add edx, 0
por xmm7, xmm7
or cl, cl
and ebp, ebp
or dl, dl
lea ebx, [ebx]
mov edi, edi
por mm1, mm1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], 0x825b55de
mov edx, dword [esp + 0x10]
call fcn.00404e80
mov ecx, 0x8e73db8d
mov edx, 0x5542208c
mov ebp, 0x3b26ac85
mov ebx, 0x3879001e
xor ecx, dword [eax]
xor edx, dword [eax + 4]
xor ebp, dword [eax + 8]
xor ebx, dword [eax + 0xc]
mov dword [esp + 8], esi
mov esi, 0x17234843
xor esi, dword [eax + 0x10]
movzx eax, byte [eax + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x10]
xor al, 0x96
mov dword [esp + 0x20], esi
mov byte [esp + 0x24], al
push 0x15
call fcn.00402380
add esp, 4
test edi, edi
je 0x40bfbc
push dword [esp]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esp + 4], 0
mov eax, dword [esp + 0xc]
je 0x40c013
push eax
jmp 0x40c005
mov cl, cl
pand mm1, mm1
por mm2, mm2
mov eax, eax
add eax, 0
ror ebp, 0x20
pand mm4, mm4
add eax, 0
mov ecx, ecx
and edx, 0xffffffff
test edi, edi
mov byte [esi], 4
je 0x40bffd
push dword [esp]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esp + 4], 0
je 0x40c013
push ebx
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
add esp, 0x98
pop esi
pop edi
pop ebx
pop ebp
ret