Function at 0x402440
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b2a0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x45f4b0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x34], esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp byte [esi + 0x34], 0
je 0x4024a3
call fcn.00401d90
test al, al
je 0x4028ae
mov ecx, esi
call fcn.00401f80
test al, al
je 0x4028ae
mov byte [esi + 0x34], 0
push 0
push 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [esi + 0x54]
push 0
push 0
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
mov ecx, esi
call fcn.004068e0
cmp byte [ebx], 0
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
jne 0x4024f2
xor ecx, ecx
jmp 0x402500
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4024f7
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x30]
call fcn.0040a2f0
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00401520
cmp dword [ebp - 0x1c], 0x10
jb 0x402526
push dword [ebp - 0x30]
call fcn.00431bdf
add esp, 4
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 1
je 0x402546
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 1
jne 0x402537
mov eax, dword [ecx + 0xc]
mov edx, dword [eax + 4]
mov dword [ebp - 0x40], edx
mov dword [eax], 2
test edx, edx
je 0x4028ae
mov eax, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x18]
mov dword [ebp - 0x3c], eax
cmp ebx, eax
je 0x4028aa
mov edi, dword [ebx]
mov esi, dword [edi + 4]
mov edi, dword [edi + 8]
cmp esi, edi
je 0x4026f3
push 0
push 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [ebp - 0x34]
push dword [eax + 0x54]
push 0
push 0
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 0
je 0x4025d3
lea ebx, [ebx]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 0
jne 0x4025c0
mov eax, dword [ecx + 0xc]
mov dword [eax + 4], 5
mov eax, dword [ecx + 0xc]
mov dword [eax], 1
mov eax, dword [ecx + 0xc]
cmp dword [eax], 2
je 0x402603
mov edi, edi
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 2
jne 0x4025f0
mov eax, dword [ecx + 0xc]
mov dword [eax], 0
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 0xc]
cmp dword [eax], 0
je 0x402633
lea esp, [esp]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 0
jne 0x402620
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp - 0x38]
mov dword [eax + 4], edx
mov eax, dword [ecx + 0xc]
mov dword [eax], 1
mov eax, dword [ecx + 0xc]
cmp dword [eax], 2
je 0x402663
lea ecx, [ecx]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 2
jne 0x402650
mov eax, dword [ecx + 0xc]
mov dword [eax], 0
mov eax, dword [ecx + 0xc]
cmp dword [eax], 0
je 0x402687
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 0
jne 0x402674
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp - 0x40]
mov dword [eax + 4], edx
mov eax, dword [ecx + 0xc]
mov dword [eax], 1
mov eax, dword [ecx + 0xc]
cmp dword [eax], 2
je 0x4026b4
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 2
jne 0x4026a1
mov eax, dword [ecx + 0xc]
mov dword [eax], 0
mov eax, dword [ecx + 0xc]
cmp dword [eax], 1
je 0x4026d8
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 1
jne 0x4026c5
mov eax, dword [ecx + 0xc]
mov edx, dword [eax + 4]
mov dword [ebp - 0x38], edx
mov dword [eax], 2
test edx, edx
jne 0x4026fe
add esi, 4
jmp 0x402576
mov eax, dword [ebp - 0x3c]
add ebx, 4
jmp 0x402566
push 0
push 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [ebp - 0x34]
push eax
push dword [ebx + 0x54]
push 0
push 0
push dword [ebx + 0x58]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [eax], 0
je 0x40274c
lea ebx, [ebx]
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
jne 0x402740
mov eax, dword [ebx + 0xc]
mov dword [eax + 4], 6
mov eax, dword [ebx + 0xc]
mov dword [eax], 1
mov eax, dword [ebx + 0xc]
cmp dword [eax], 2
je 0x402773
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 2
jne 0x402767
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
je 0x402790
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
jne 0x402784
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0xc]
mov dword [eax], 1
mov eax, dword [ebx + 0xc]
cmp dword [eax], 2
je 0x4027bc
lea ebx, [ebx]
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 2
jne 0x4027b0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
cmp dword [eax], 1
je 0x4027dc
lea ecx, [ecx]
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 1
jne 0x4027d0
mov eax, dword [ebx + 0xc]
push 0
push 4
mov ecx, dword [eax + 4]
mov dword [ebp - 0x3c], ecx
mov dword [eax], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebx + 0x54]
push 0
push 0
push dword [ebx + 0x58]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
je 0x40282c
mov edi, edi
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
jne 0x402820
mov eax, dword [ebx + 0xc]
mov dword [eax + 4], 4
mov eax, dword [ebx + 0xc]
mov dword [eax], 1
mov eax, dword [ebx + 0xc]
cmp dword [eax], 2
je 0x402853
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 2
jne 0x402847
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
je 0x402870
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
jne 0x402864
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x40]
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0xc]
mov dword [eax], 1
mov eax, dword [ebx + 0xc]
cmp dword [eax], 2
je 0x40289c
lea ebx, [ebx]
push 0
call edi
mov ecx, dword [ebx + 0xc]
cmp dword [ecx], 2
jne 0x402890
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x3c]
mov dword [ecx], 0
jmp 0x4028b0
mov byte [ecx + 0x34], 1
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 - 0x18]
xor ecx, ebp
call fcn.00431be4
mov esp, ebp
pop ebp
ret 4