Function at 0x401f80
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b270
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x45f4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], esi
mov edi, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
cmp edi, ebx
je 0x402407
mov edi, edi
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]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
je 0x402006
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
jne 0x401ff6
mov eax, dword [esi + 0xc]
mov dword [eax + 4], 2
mov eax, dword [esi + 0xc]
mov dword [eax], 1
mov eax, dword [esi + 0xc]
cmp dword [eax], 2
je 0x402031
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
cmp dword [eax], 2
jne 0x402021
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
je 0x402060
lea esp, [esp]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
jne 0x402050
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0xc]
mov dword [eax], 1
mov eax, dword [esi + 0xc]
cmp dword [eax], 2
je 0x402090
lea ebx, [ebx]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
cmp dword [eax], 2
jne 0x402080
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
cmp dword [eax], 1
je 0x4020b1
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
cmp dword [eax], 1
jne 0x4020a1
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
mov dword [eax], 2
test ecx, ecx
je 0x40242f
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]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
je 0x402110
jmp 0x402100
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
jne 0x402100
mov eax, dword [esi + 0xc]
mov dword [eax + 4], 1
mov eax, dword [esi + 0xc]
mov dword [eax], 1
mov eax, dword [esi + 0xc]
cmp dword [eax], 2
je 0x402140
jmp 0x402130
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
cmp dword [eax], 2
jne 0x402130
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
cmp dword [eax], 1
je 0x402161
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
cmp dword [eax], 1
jne 0x402151
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x48], ecx
mov dword [eax], 2
test ecx, ecx
je 0x40242f
mov dword [ebp - 0x30], 0
nop
push 0x30
call fcn.00431bf3
mov ecx, eax
mov dword [ebp - 0x2c], eax
add esp, 4
test ecx, ecx
je 0x4021d0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0x20], 0xf
mov dword [ecx + 0x1c], 0
mov byte [ecx + 0xc], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
jmp 0x4021d5
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [esi + 0xc]
cmp dword [eax], 1
je 0x4021f1
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
cmp dword [eax], 1
jne 0x4021e1
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
mov dword [eax], 2
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0xc]
cmp dword [eax], 1
je 0x402220
jmp 0x402210
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
cmp dword [eax], 1
jne 0x402210
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
mov dword [eax], 2
mov eax, dword [ebp - 0x2c]
mov dword [eax + 8], ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.004014a0
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0
lea eax, [ecx + 0xc]
cmp eax, edx
je 0x402262
push 0xffffffffffffffff
mov ecx, edx
push 0
push ecx
mov ecx, eax
call fcn.00409f00
mov ecx, dword [ebp - 0x2c]
mov esi, ecx
mov dword [ebp - 0x40], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
mov eax, dword [edi]
add eax, 4
mov dword [ebp - 0x38], eax
mov edx, dword [eax + 4]
cmp ecx, edx
jae 0x40231f
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x40]
cmp dword [eax], ecx
ja 0x40231f
sub ecx, dword [eax]
sar ecx, 2
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax + 8]
cmp edx, ecx
jne 0x4022f4
mov eax, ecx
sub eax, edx
sar eax, 2
cmp eax, 1
jae 0x4022f1
sub edx, dword [ebp - 0x34]
mov eax, 0x3fffffff
sar edx, 2
sub eax, edx
cmp eax, 1
jb 0x402425
sub ecx, dword [ebp - 0x34]
inc edx
sar ecx, 2
mov eax, 0x3fffffff
mov dword [ebp - 0x2c], edx
mov edx, ecx
shr edx, 1
sub eax, edx
cmp eax, ecx
jae 0x4022df
xor ecx, ecx
jmp 0x4022e1
add ecx, edx
cmp ecx, dword [ebp - 0x2c]
cmovb ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.00405860
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax]
lea edx, [eax + ecx*4]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x402319
mov eax, dword [edx]
mov dword [edx], 0
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x402399
mov ecx, dword [eax + 8]
cmp edx, ecx
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x2c]
jne 0x40238a
mov eax, dword [ebp - 0x34]
sub eax, edx
sar eax, 2
cmp eax, 1
jae 0x402387
mov ecx, dword [ebp - 0x38]
mov eax, 0x3fffffff
sub edx, dword [ecx]
sar edx, 2
sub eax, edx
cmp eax, 1
jb 0x402425
inc edx
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x34]
sub edx, dword [ecx]
sar edx, 2
mov eax, edx
shr eax, 1
mov dword [ebp - 0x34], eax
mov eax, 0x3fffffff
sub eax, dword [ebp - 0x34]
cmp eax, edx
jae 0x402374
xor edx, edx
jmp 0x402377
add edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x3c]
cmovb edx, dword [ebp - 0x3c]
push edx
call fcn.00405860
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 4]
test edx, edx
je 0x402395
xor esi, esi
mov dword [edx], ecx
add dword [eax + 4], 4
test esi, esi
je 0x4023d1
lea ecx, [esi + 0x24]
call fcn.00404bb0
cmp dword [esi + 0x20], 0x10
jb 0x4023b6
push dword [esi + 0xc]
call fcn.00431bdf
add esp, 4
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], 0
push esi
mov byte [esi + 0xc], 0
call fcn.00431bdf
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x4023e9
push dword [ebp - 0x28]
call fcn.00431bdf
add esp, 4
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x48]
jb 0x402180
add edi, 4
cmp edi, ebx
jne 0x401fc0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431be4
mov esp, ebp
pop ebp
ret
push 0x455e18
call fcn.0041beaf
xor al, al
jmp 0x402409