Function at 0x410050
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5007e5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x57b0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0x28
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x11], 0
call fcn.004d54c1
mov ecx, eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov dword [ecx], eax
lea eax, [ebp - 0x11]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x18]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], esi
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], 0x40f120
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push 0
push ecx
push 0x410bd0
push 0
push 0
call fcn.004dfe01
add esp, 0x1c
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4102f4
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x410302
push ecx
push eax
call fcn.004bdaf1
add esp, 8
test eax, eax
jne 0x410302
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
movlpd qword [ebp - 0x28], xmm0
test eax, eax
jne 0x41014b
nop
push 0x32
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x410140
cmp eax, 0xffffffff
jne 0x41016d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d523a
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x11], 0
jne 0x41017d
push 0x32
call esi
cmp byte [ebp - 0x11], 0
je 0x410173
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4101fd
call fcn.0040d350
cmp dword [eax + 4], esi
je 0x4101fd
mov ecx, esi
call fcn.0040d670
mov esi, eax
test esi, esi
js 0x4102ec
mov ecx, dword [0x5a9ae0]
mov eax, 0x7e8472a9
mov edi, dword [0x5a9adc]
sub ecx, edi
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jge 0x4102ec
imul eax, esi, 0x40c
cmp byte [eax + edi], 0
je 0x4102ec
cmp byte [0x5a986f], 0
je 0x4101ee
nop
call fcn.0040b7a0
cmp byte [0x5a986f], 0
jne 0x4101e0
mov ecx, esi
call fcn.0040d720
mov dword [0x5a6cb8], esi
jmp 0x41020e
call fcn.0040d350
mov esi, eax
call fcn.004cfe90
cmp eax, dword [esi + 0x10]
je 0x41021f
call fcn.0040d350
mov eax, dword [eax + 0x10]
push eax
call fcn.004cfea0
add esp, 4
cmp byte [0x5a986f], 0
jne 0x410269
mov esi, dword [0x5a6cb8]
test esi, esi
js 0x4102ec
mov ecx, dword [0x5a9ae0]
mov eax, 0x7e8472a9
sub ecx, dword [0x5a9adc]
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jge 0x4102ec
mov ecx, esi
call fcn.0040d720
mov byte [0x5a986f], 1
push 0xf0f0f0
call fcn.004cffe0
push 0
call fcn.004d0060
push 0
call fcn.004d0040
push 0
call fcn.004d0020
add esp, 0x10
call fcn.004cff10
cmp byte [0x5a986f], 0
je 0x4102d4
mov esi, dword [0x5a6cb8]
test esi, esi
js 0x4102cd
mov ecx, dword [0x5a9ae0]
mov eax, 0x7e8472a9
sub ecx, dword [0x5a9adc]
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jge 0x4102cd
call fcn.0040d350
mov byte [eax + 0x18], 1
mov byte [0x5a986f], 0
call fcn.0040d350
push 0
push 0
push 0x287c
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x20]
jmp 0x410152
push 6
mov dword [ebp - 0x24], 0
call fcn.004bda35
push 1
call fcn.004bda35
int3