Function at 0x4039e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dad8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4634b0]
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.00407a70
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 0x403a40
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 0x403a7f
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
jne 0x403a73
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 0x403aac
lea ebx, [ebx]
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 2
jne 0x403aa0
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 0x403acf
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
jne 0x403ac3
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 0x403af2
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 2
jne 0x403ae6
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
cmp dword [eax], 1
je 0x403b0f
push 0
call edi
mov eax, dword [ebx + 0xc]
cmp dword [eax], 1
jne 0x403b03
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 0x403e9c
lea ecx, [ecx]
push 0x3c
call fcn.00434316
mov edi, eax
add esp, 4
test edi, edi
je 0x403b7a
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 0x403b7c
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 0x403ba6
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0xc]
cmp dword [eax], 1
jne 0x403b96
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 0x403c30
cmp dword [edi + 0x14], 0x10
jb 0x403bdc
push dword [edi]
call fcn.00434302
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 0x403c09
mov eax, dword [ecx + 0x10]
inc eax
je 0x403c13
push eax
push ecx
push edi
call fcn.00434370
mov ecx, dword [ebp - 0x34]
add esp, 0xc
jmp 0x403c13
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 0x403c41
push dword [ebp - 0x2c]
call fcn.00434302
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 0x403cc5
cmp dword [ecx + 0x14], 0x10
jb 0x403c6e
push dword [ecx]
call fcn.00434302
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 0x403c9e
mov eax, dword [edx + 0x10]
inc eax
je 0x403ca8
push eax
push edx
push ecx
call fcn.00434370
mov edx, dword [ebp - 0x34]
lea ecx, [edi + 0x1c]
add esp, 0xc
jmp 0x403ca8
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 0x403cd6
push dword [ebp - 0x2c]
call fcn.00434302
add esp, 4
mov eax, dword [ebx + 0xc]
cmp dword [eax], 1
je 0x403cf0
mov edi, edi
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0xc]
cmp dword [eax], 1
jne 0x403ce0
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 0x403db8
mov eax, dword [edx + 0x48]
lea ebx, [ebp - 0x3c]
cmp eax, ebx
mov ebx, dword [ebp - 0x48]
ja 0x403db8
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 0x403d96
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x403d96
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 0x403ef1
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 0x403d7f
xor edx, edx
jmp 0x403d81
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.00406060
mov eax, dword [edi]
mov ecx, dword [ebp - 0x44]
mov edx, dword [edi + 4]
lea ecx, [eax + ecx*4]
test edx, edx
je 0x403db2
mov eax, dword [ecx]
mov dword [ecx], 0
mov esi, dword [ebp - 0x3c]
mov dword [edx], eax
add dword [edi + 4], 4
jmp 0x403e2e
mov edx, dword [edx + 0x50]
cmp ecx, edx
jne 0x403e1c
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x403e1c
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 0x403ef1
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 0x403e07
xor edx, edx
jmp 0x403e09
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.00406060
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x403e2a
xor esi, esi
mov dword [eax], edi
add dword [ecx + 0x4c], 4
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x403e86
cmp dword [esi + 0x30], 0x10
jb 0x403e4a
push dword [esi + 0x1c]
call fcn.00434302
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], 0
mov byte [esi + 0x1c], 0
cmp dword [esi + 0x14], 0x10
jb 0x403e6c
push dword [esi]
call fcn.00434302
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push esi
mov byte [esi], 0
call fcn.00434302
add esp, 4
mov esi, dword [ebp - 0x4c]
inc esi
mov dword [ebp - 0x4c], esi
cmp esi, dword [ebp - 0x38]
jb 0x403b30
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x40]
mov ecx, ebx
push dword [eax + 4]
call fcn.004043e0
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x403a40
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.004075e0
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.00434307
mov esp, ebp
pop ebp
ret 4
push 0x458e18
call fcn.0041e5cf
int3