Function at 0x41a459
Capabilities:
Create thread

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x489c20]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x14
mov eax, 0x470804
call fcn.00450afd
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x810]
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp ecx, ebx
je 0x41a6d3
cmp ecx, 0xffffffff
je 0x41a6c0
cmp eax, ebx
je 0x41a6c9
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x41a4b3
sub eax, esi
sar eax, 1
cmp eax, 1
jb 0x41a6c9
mov eax, dword [ebp + 0x814]
cmp eax, ebx
jle 0x41a6c9
push dword [ebp - 0x1c]
mov dword [edi + 0x104], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004019b7
lea eax, [ebp - 0x14]
mov esi, 0x47cfd0
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00401e71
test eax, eax
jne 0x41a511
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401464
jmp 0x41a6d3
push dword [ebp - 0x18]
lea eax, [edi + 0x3c]
push eax
call fcn.00401a3d
cmp dword [ebp - 0x10], ebx
je 0x41a525
mov esi, dword [ebp - 0x10]
push esi
lea eax, [edi + 0x40]
push eax
call fcn.00401a3d
mov eax, dword [ebp + 0x818]
mov dword [edi + 0x30], eax
mov eax, dword [0x48c260]
mov esi, 0x48c260
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [0x48c260]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
xor eax, eax
mov byte [ebp - 4], 2
push 0x7fe
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.00450bc0
mov eax, dword [ebp - 0x14]
add esp, 0xc
push dword [eax - 0xc]
lea esi, [ebp - 0x14]
call fcn.00401255
lea esi, [ebp]
mov ecx, eax
call fcn.00419b6e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
lea ebx, [edi + 0x4c]
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.0041d517
pop ecx
pop ecx
test eax, eax
jne 0x41a5f3
xor esi, esi
mov eax, dword [edi + 8]
cmp eax, esi
je 0x41a5cb
cmp eax, 0xffffffff
je 0x41a5cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401464
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401464
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401464
mov eax, esi
jmp 0x41a6d5
lea eax, [ebp]
push eax
lea eax, [edi + 0x48]
push eax
call fcn.00401a3d
xor ebx, ebx
push edi
inc ebx
call fcn.0041a6fa
xor esi, esi
mov dword [edi + 0x54], eax
cmp eax, esi
jne 0x41a63e
mov eax, dword [edi + 8]
cmp eax, esi
je 0x41a628
cmp eax, 0xffffffff
je 0x41a628
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], esi
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
mov dword [ebp - 0x18], 5
call fcn.0041b8cb
mov esi, eax
jmp 0x41a5cb
mov ecx, dword [edi + 0x70]
push esi
mov dword [eax + 0x10], ecx
mov eax, dword [edi + 0x54]
push esi
call fcn.0041cc6e
mov eax, dword [edi + 0x54]
mov dword [eax + 0xc], edi
lea eax, [ebp]
push eax
mov eax, dword [edi + 0x54]
call fcn.0041ce68
mov eax, dword [edi + 0x54]
mov ecx, dword [edi + 0x74]
mov dword [eax + 0x124], ecx
lea eax, [ebp - 0x20]
push eax
push esi
push edi
push 0x41a1ff
push 0xa00000
push esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x34], eax
cmp eax, esi
je 0x41a5b5
cmp eax, 0xffffffff
je 0x41a5b5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401464
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401464
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401464
xor eax, eax
inc eax
jmp 0x41a6d5
cmp ecx, ebx
je 0x41a6d3
cmp ecx, 0xffffffff
je 0x41a6d3
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0044eff8
add ebp, 0x804
leave
ret 0x10