Function at 0x40a840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x42c300
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
push 0x4c
call fcn.00446dfb
add esp, 4
mov edi, eax
lea esi, [ebp + 8]
xorps xmm0, xmm0
movups xmmword [eax + 0x3c], xmm0
movups xmmword [eax + 0x30], xmm0
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
mov ecx, eax
call fcn.0040abd0
movzx eax, byte [esi]
mov byte [edi], al
lea ecx, [edi + 4]
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 0x20], edi
call fcn.0040af80
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 0x1c]
lea eax, [ebp + 0x24]
push eax
call fcn.0040b180
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 0x28]
lea eax, [ebp + 0x30]
push eax
call fcn.0040b180
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 0x34]
lea eax, [ebp + 0x3c]
push eax
call fcn.0040b180
mov ecx, dword [ebp - 0x20]
add ecx, 0x40
lea eax, [ebp + 0x48]
push eax
call fcn.0040b180
mov ecx, dword [ebp - 0x20]
mov eax, 0xc763f10a
nop dword [eax + eax]
cmp eax, 0xc763f10a
je 0x40a910
cmp eax, 0x68c3f833
jne 0x40a900
jmp 0x40a917
mov eax, 0x68c3f833
jmp 0x40a900
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0x407f20
push 0
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x40a954
lea eax, [ebp + 8]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x34]
push eax
call fcn.004263f0
jmp 0x40a9b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call sub.KERNEL32.dll_GetCurrentThreadId
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
mov ecx, 0xd8210750
nop word cs:[eax + eax]
cmp ecx, 0xd8210750
je 0x40a992
cmp ecx, 0xfa573f0b
jne 0x40a980
jmp 0x40a999
mov ecx, 0xfa573f0b
jmp 0x40a980
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x30]
push str.ERROR___d_:__create_th_failed__d__n
call fcn.004015c0
add esp, 0xc
mov eax, 0x7829505
nop dword [eax]
cmp eax, 0x7829505
je 0x40a9d0
cmp eax, 0xe864405
jne 0x40a9c0
jmp 0x40a9d7
mov eax, 0xe864405
jmp 0x40a9c0
lea ecx, [ebp + 0xc]
call fcn.0041d790
mov eax, 0xb46d5a3b
nop word cs:[eax + eax]
cmp eax, 0xb46d5a3b
je 0x40aa00
cmp eax, 0x1369437d
jne 0x40a9f0
jmp 0x40aa07
mov eax, 0x1369437d
jmp 0x40a9f0
mov eax, 0x17ac3f07
nop dword [eax]
cmp eax, 0x17ac3f07
je 0x40aa20
cmp eax, 0x50fec471
jne 0x40aa10
jmp 0x40aa27
mov eax, 0x50fec471
jmp 0x40aa10
lea eax, [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, 0x66eec162
nop word cs:[eax + eax]
cmp eax, 0x66eec162
je 0x40aa50
cmp eax, 0xc44a53dd
jne 0x40aa40
jmp 0x40aa57
mov eax, 0xc44a53dd
jmp 0x40aa40
mov eax, 0x5eaec0f3
nop dword [eax]
cmp eax, 0x5eaec0f3
je 0x40aa70
cmp eax, 0x49276c5c
jne 0x40aa60
jmp 0x40aa7f
lea ecx, [ebp + 0x24]
call fcn.004238f0
mov eax, 0x49276c5c
jmp 0x40aa60
mov eax, 0x5eaec0f3
nop word cs:[eax + eax]
cmp eax, 0x5eaec0f3
je 0x40aaa0
cmp eax, 0x49276c5c
jne 0x40aa90
jmp 0x40aaaf
lea ecx, [ebp + 0x30]
call fcn.004238f0
mov eax, 0x49276c5c
jmp 0x40aa90
mov eax, 0x5eaec0f3
nop word cs:[eax + eax]
cmp eax, 0x5eaec0f3
je 0x40aad0
cmp eax, 0x49276c5c
jne 0x40aac0
jmp 0x40aadf
lea ecx, [ebp + 0x3c]
call fcn.004238f0
mov eax, 0x49276c5c
jmp 0x40aac0
mov eax, 0x5eaec0f3
nop word cs:[eax + eax]
cmp eax, 0x49276c5c
je 0x40ab0d
cmp eax, 0x5eaec0f3
jne 0x40aaf0
lea ecx, [ebp + 0x48]
call fcn.004238f0
mov eax, 0x49276c5c
jmp 0x40aaf0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret