Function at 0x4047b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4119e3
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x5ac
mov eax, dword [0x417088]
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x5a4], ecx
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
je 0x404d68
mov eax, dword [ebp - 0x5a4]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov dword [ebp - 4], 0
push 1
push 0
push 0x412b10
mov ecx, dword [ebp - 0x5a4]
add ecx, 4
call fcn.00405510
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x404834
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040e440
push 0
push 0x1e
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 0x5a4]
mov edx, dword [ebp + 8]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x5a4]
add eax, 0x10
mov dword [ebp - 0x540], eax
mov ecx, dword [ebp - 0x5a4]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x53c], edx
mov eax, dword [ebp - 0x540]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x53c]
je 0x4048c2
mov edx, dword [ebp - 0x540]
mov eax, dword [edx]
mov dword [ebp - 0x538], eax
mov ecx, dword [ebp - 0x540]
mov edx, dword [ebp - 0x53c]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x540]
call fcn.004055e0
cmp dword [ebp - 0x538], 0
je 0x4048c2
mov eax, dword [ebp - 0x538]
push eax
mov ecx, dword [ebp - 0x538]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x5a4]
mov dword [ecx + 0x14], 0x64
mov edx, dword [ebp - 0x5a4]
mov eax, dword [ebp + 8]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp - 0x5a4]
add ecx, 0x1c
mov dword [ebp - 0x54c], ecx
mov edx, dword [ebp - 0x5a4]
mov eax, dword [edx + 4]
mov dword [ebp - 0x548], eax
mov ecx, dword [ebp - 0x54c]
mov edx, dword [ecx]
cmp edx, dword [ebp - 0x548]
je 0x40494d
mov eax, dword [ebp - 0x54c]
mov ecx, dword [eax]
mov dword [ebp - 0x544], ecx
mov edx, dword [ebp - 0x54c]
mov eax, dword [ebp - 0x548]
mov dword [edx], eax
mov ecx, dword [ebp - 0x54c]
call fcn.004055e0
cmp dword [ebp - 0x544], 0
je 0x40494d
mov ecx, dword [ebp - 0x544]
push ecx
mov edx, dword [ebp - 0x544]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
call ecx
mov edx, dword [ebp - 0x5a4]
mov dword [edx + 0x20], 0x64
mov eax, dword [ebp - 0x5a4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp - 0x5a4]
add edx, 0x28
mov dword [ebp - 0x558], edx
mov eax, dword [ebp - 0x5a4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x554], ecx
mov edx, dword [ebp - 0x558]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x554]
je 0x4049d8
mov ecx, dword [ebp - 0x558]
mov edx, dword [ecx]
mov dword [ebp - 0x550], edx
mov eax, dword [ebp - 0x558]
mov ecx, dword [ebp - 0x554]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x558]
call fcn.004055e0
cmp dword [ebp - 0x550], 0
je 0x4049d8
mov edx, dword [ebp - 0x550]
push edx
mov eax, dword [ebp - 0x550]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
call edx
mov eax, dword [ebp - 0x5a4]
mov dword [eax + 0x2c], 0x64
mov ecx, dword [ebp - 0x5a4]
add ecx, 0x30
push ecx
push 0
mov edx, dword [ebp - 0x5a4]
add edx, 0xc
push edx
push 0x4046f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x5a4]
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp - 0x5a4]
xor eax, eax
cmp dword [edx + 0x3c], 0
setne al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x404a39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x404ad9
mov ecx, dword [ebp - 0x5a4]
add ecx, 0x34
push ecx
push 0
mov edx, dword [ebp - 0x5a4]
add edx, 0x18
push edx
push 0x4046f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x5a4]
mov dword [ecx + 0x40], eax
mov edx, dword [ebp - 0x5a4]
xor eax, eax
cmp dword [edx + 0x40], 0
setne al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x404a8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x404ad9
mov ecx, dword [ebp - 0x5a4]
add ecx, 0x38
push ecx
push 0
mov edx, dword [ebp - 0x5a4]
add edx, 0x24
push edx
push 0x4046f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x5a4]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp - 0x5a4]
xor eax, eax
cmp dword [edx + 0x44], 0
setne al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x404ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x404d61
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00405605
mov esp, ebp
pop ebp
ret 4