Function at 0x4038e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b388
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x45f4b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x48], ebx
mov edi, dword [ebp + 8]
push dword [ebp - 0x38]
mov dword [ebp - 0x30], edi
push ecx
mov edx, dword [edi + 0x4c]
mov ecx, dword [edi + 0x48]
call fcn.004072b0
mov eax, dword [edi + 0x48]
add esp, 8
mov dword [edi + 0x4c], eax
mov dword [ebp - 0x40], edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403940
push 0
push 4
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 0x40397f
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
jne 0x403973
mov eax, dword [ebx + 0xc]
mov dword [eax + 4], 8
mov eax, dword [ebx + 0xc]
mov dword [eax], 1
mov eax, dword [ebx + 0xc]
cmp dword [eax], 2
je 0x4039ac
lea ebx, [ebx]
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 2
jne 0x4039a0
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp - 0x40]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov esi, dword [esi + 4]
cmp dword [eax], 0
je 0x4039cf
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
jne 0x4039c3
mov eax, dword [ebx + 0xc]
mov dword [eax + 4], esi
mov eax, dword [ebx + 0xc]
mov dword [eax], 1
mov eax, dword [ebx + 0xc]
cmp dword [eax], 2
je 0x4039f2
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 2
jne 0x4039e6
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
cmp dword [eax], 1
je 0x403a0f
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 1
jne 0x403a03
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x4c], 0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x38], ecx
mov dword [eax], 2
test ecx, ecx
je 0x403d9c
lea ecx, [ecx]
push 0x3c
call fcn.00431bf3
mov edi, eax
add esp, 4
test edi, edi
je 0x403a7a
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x2c], 0
mov byte [edi + 0x1c], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
jmp 0x403a7c
xor edi, edi
mov esi, edi
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], 0
mov dword [edi + 0x38], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax], 1
je 0x403aa6
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0xc]
cmp dword [eax], 1
jne 0x403a96
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 4]
mov dword [eax], 2
lea eax, [ebp - 0x2c]
mov dword [edi + 0x34], ecx
mov ecx, ebx
push eax
call fcn.004014a0
mov ecx, eax
mov dword [ebp - 0x34], ecx
cmp edi, ecx
je 0x403b30
cmp dword [edi + 0x14], 0x10
jb 0x403adc
push dword [edi]
call fcn.00431bdf
mov ecx, dword [ebp - 0x34]
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp dword [ecx + 0x14], 0x10
jae 0x403b09
mov eax, dword [ecx + 0x10]
inc eax
je 0x403b13
push eax
push ecx
push edi
call fcn.00431c50
mov ecx, dword [ebp - 0x34]
add esp, 0xc
jmp 0x403b13
mov eax, dword [ecx]
mov dword [edi], eax
mov dword [ecx], 0
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x14], eax
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
cmp dword [ebp - 0x18], 0x10
jb 0x403b41
push dword [ebp - 0x2c]
call fcn.00431bdf
add esp, 4
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.004014a0
mov edx, eax
lea ecx, [edi + 0x1c]
mov dword [ebp - 0x34], edx
cmp ecx, edx
je 0x403bc5
cmp dword [ecx + 0x14], 0x10
jb 0x403b6e
push dword [ecx]
call fcn.00431bdf
mov edx, dword [ebp - 0x34]
lea ecx, [edi + 0x1c]
add esp, 4
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
cmp dword [edx + 0x14], 0x10
jae 0x403b9e
mov eax, dword [edx + 0x10]
inc eax
je 0x403ba8
push eax
push edx
push ecx
call fcn.00431c50
mov edx, dword [ebp - 0x34]
lea ecx, [edi + 0x1c]
add esp, 0xc
jmp 0x403ba8
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [edx], 0
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x14], eax
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp dword [ebp - 0x18], 0x10
jb 0x403bd6
push dword [ebp - 0x2c]
call fcn.00431bdf
add esp, 4
mov eax, dword [ebx + 0xc]
cmp dword [eax], 1
je 0x403bf0
mov edi, edi
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0xc]
cmp dword [eax], 1
jne 0x403be0
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
mov dword [eax], 2
lea eax, [ebp - 0x3c]
mov dword [edi + 0x18], ecx
mov ecx, dword [edx + 0x4c]
cmp eax, ecx
jae 0x403cb8
mov eax, dword [edx + 0x48]
lea ebx, [ebp - 0x3c]
cmp eax, ebx
mov ebx, dword [ebp - 0x48]
ja 0x403cb8
mov edi, dword [ebp - 0x30]
lea edx, [ebp - 0x3c]
sub edx, eax
add edi, 0x48
sar edx, 2
mov dword [ebp - 0x44], edx
mov edx, dword [edi + 8]
cmp ecx, edx
jne 0x403c96
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x403c96
mov ebx, dword [ebp - 0x30]
mov eax, 0x3fffffff
mov edi, dword [ebx + 0x48]
sub ecx, edi
mov ebx, dword [ebp - 0x48]
sar ecx, 2
sub eax, ecx
cmp eax, 1
jb 0x403df1
inc ecx
sub edx, edi
sar edx, 2
mov eax, 0x3fffffff
mov dword [ebp - 0x34], ecx
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x403c7f
xor edx, edx
jmp 0x403c81
add edx, ecx
cmp edx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
cmovb edx, dword [ebp - 0x34]
add edi, 0x48
push edx
mov ecx, edi
call fcn.004059b0
mov eax, dword [edi]
mov ecx, dword [ebp - 0x44]
mov edx, dword [edi + 4]
lea ecx, [eax + ecx*4]
test edx, edx
je 0x403cb2
mov eax, dword [ecx]
mov dword [ecx], 0
mov esi, dword [ebp - 0x3c]
mov dword [edx], eax
add dword [edi + 4], 4
jmp 0x403d2e
mov edx, dword [edx + 0x50]
cmp ecx, edx
jne 0x403d1c
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x403d1c
mov ebx, dword [ebp - 0x30]
mov eax, 0x3fffffff
sub ecx, dword [ebx + 0x48]
mov ebx, dword [ebp - 0x48]
sar ecx, 2
sub eax, ecx
cmp eax, 1
jb 0x403df1
inc ecx
mov eax, 0x3fffffff
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x30]
sub edx, dword [ecx + 0x48]
sar edx, 2
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x403d07
xor edx, edx
jmp 0x403d09
add edx, ecx
cmp edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
cmovb edx, dword [ebp - 0x44]
push edx
lea ecx, [ecx + 0x48]
call fcn.004059b0
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x403d2a
xor esi, esi
mov dword [eax], edi
add dword [ecx + 0x4c], 4
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x403d86
cmp dword [esi + 0x30], 0x10
jb 0x403d4a
push dword [esi + 0x1c]
call fcn.00431bdf
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], 0
mov byte [esi + 0x1c], 0
cmp dword [esi + 0x14], 0x10
jb 0x403d6c
push dword [esi]
call fcn.00431bdf
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push esi
mov byte [esi], 0
call fcn.00431bdf
add esp, 4
mov esi, dword [ebp - 0x4c]
inc esi
mov dword [ebp - 0x4c], esi
cmp esi, dword [ebp - 0x38]
jb 0x403a30
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x40]
mov ecx, ebx
push dword [eax + 4]
call fcn.00403e00
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x403940
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0x38], al
push dword [ebp - 0x38]
mov edx, dword [ecx + 0x4c]
mov eax, edx
mov ecx, dword [ecx + 0x48]
sub eax, ecx
sar eax, 2
push eax
call fcn.00406f30
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431be4
mov esp, ebp
pop ebp
ret 4
push 0x455e18
call fcn.0041beaf
int3