Function at 0x403c50
Capabilities:
Create thread
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 0x1a5]
xor edx, edx
dec ecx
push 0xa
pop esi
div esi
add dl, 0x30
mov byte [ecx], dl
test eax, eax
jne 0x403c6c
lea edi, [esp + 0x14]
xor edx, edx
stosd dword es:[edi], eax
mov ebx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1a5]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edx
cmp ecx, eax
jne 0x403caa
mov dword [esp + 0x28], 0xf
mov byte [esp + 0x14], dl
jmp 0x403cc4
lea eax, [esp + 0x1a5]
sub eax, ecx
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405a73
mov ebx, dword [esp + 0x24]
xor edx, edx
xor eax, eax
mov dword [esp + 0x7c], edx
push 0xf
lea edi, [esp + 0xd8]
mov dword [esp + 0x84], edx
stosd dword es:[edi], eax
mov dword [esp + 0x88], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
push 0x48
pop eax
push 0x69
mov word [esp + 0x54], ax
pop eax
push 0x70
mov word [esp + 0x56], ax
pop eax
push 0x73
mov word [esp + 0x58], ax
pop eax
push 0x54
mov word [esp + 0x5a], ax
pop eax
push 0x72
mov word [esp + 0x5c], ax
pop eax
push 0x61
mov word [esp + 0x5e], ax
pop eax
push 0x79
mov word [esp + 0x60], ax
pop eax
push 0x2e
mov word [esp + 0x62], ax
pop eax
push 0x65
pop ecx
mov word [esp + 0x60], ax
push 0x78
pop eax
mov word [esp + 0x64], ax
xor eax, eax
mov word [esp + 0x68], ax
lea eax, [esp + 0x50]
mov word [esp + 0x62], cx
mov word [esp + 0x66], cx
lea ecx, [esp + 0x38]
push eax
mov dword [esp + 0xe8], edx
mov dword [esp + 0xec], edi
mov byte [esp + 0xd8], dl
call fcn.00404d88
lea ecx, [esp + 0x38]
call fcn.0040348a
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.004050b4
test esi, esi
je 0x403d8c
mov byte [0x40e990], 1
mov eax, 0x7fffffff
sub eax, ebx
cmp eax, ebx
jb 0x404829
cmp dword [esp + 0x28], edi
lea eax, [esp + 0x14]
push ebx
cmova eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
cmova ecx, dword [esp + 0x18]
push eax
push ebx
push ecx
push ecx
push dword [esp + 0x44]
lea ecx, [esp + 0xa0]
call fcn.00406036
cmp dword [esp + 0x28], edi
lea eax, [esp + 0x14]
push dword [esp + 0x24]
cmova eax, dword [esp + 0x18]
lea ecx, [esp + 0x8c]
push eax
call fcn.004051cc
push eax
lea ecx, [esp + 0x128]
call fcn.00404f98
cmp dword [esp + 0x28], edi
lea eax, [esp + 0x14]
push dword [esp + 0x24]
cmova eax, dword [esp + 0x18]
lea ecx, [esp + 0x128]
push eax
call fcn.004051cc
push eax
lea ecx, [esp + 0xc0]
call fcn.00404f98
cmp dword [esp + 0x28], edi
lea eax, [esp + 0x14]
push dword [esp + 0x24]
cmova eax, dword [esp + 0x18]
lea ecx, [esp + 0xc0]
push eax
call fcn.004051cc
push eax
lea ecx, [esp + 0xa4]
call fcn.00404f98
cmp dword [esp + 0x28], edi
lea eax, [esp + 0x14]
push dword [esp + 0x24]
cmova eax, dword [esp + 0x18]
lea ecx, [esp + 0xa4]
push eax
call fcn.004051cc
push eax
lea ecx, [esp + 0x110]
call fcn.00404f98
cmp dword [esp + 0x28], edi
lea eax, [esp + 0x14]
push dword [esp + 0x24]
cmova eax, dword [esp + 0x18]
lea ecx, [esp + 0x110]
push eax
call fcn.004051cc
push eax
lea ecx, [esp + 0xf0]
call fcn.00404f98
cmp dword [esp + 0x28], edi
lea eax, [esp + 0x14]
push dword [esp + 0x24]
cmova eax, dword [esp + 0x18]
lea ecx, [esp + 0xf0]
push eax
call fcn.004051cc
push eax
lea ecx, [esp + 0x3c]
call fcn.00404f98
cmp dword [esp + 0x28], edi
lea eax, [esp + 0x14]
push dword [esp + 0x24]
cmova eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push eax
call fcn.004051cc
push eax
lea ecx, [esp + 0x54]
call fcn.00404f98
mov edx, dword [esp + 0xe8]
cmp edx, edi
jbe 0x403f02
mov ecx, dword [esp + 0xd4]
inc edx
call fcn.00405dc4
push 6
pop ecx
lea esi, [esp + 0x50]
lea edi, [esp + 0xd4]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x38]
call fcn.00404f75
lea ecx, [esp + 0xec]
call fcn.00404f75
lea ecx, [esp + 0x10c]
call fcn.00404f75
lea ecx, [esp + 0xa0]
call fcn.00404f75
lea ecx, [esp + 0xbc]
call fcn.00404f75
lea ecx, [esp + 0x124]
call fcn.00404f75
lea ecx, [esp + 0x88]
call fcn.00404f75
lea ecx, [esp + 0x178]
call fcn.00402871
cmp dword [esp + 0xe8], 0xf
lea eax, [esp + 0xd4]
push dword [esp + 0xe4]
cmova eax, dword [esp + 0xd8]
push eax
call fcn.004071fb
mov edx, eax
lea ecx, [esp + 0x90]
call fcn.00401944
pop ecx
pop ecx
lea eax, [esp + 0x178]
push eax
lea ecx, [esp + 0x164]
call fcn.00404dc7
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x164]
call fcn.00401ba8
lea ecx, [esp + 0x88]
call fcn.004050b4
and dword [esp + 0x6c], 0
lea eax, [esp + 0xb8]
and dword [esp + 0xb8], 0
mov dword [esp + 0x104], eax
mov eax, 0x7fffffff
sub eax, dword [esp + 0xe4]
mov byte [esp + 0x108], 1
cmp eax, 2
jb 0x404829
cmp dword [esp + 0xe8], 0xf
lea eax, [esp + 0xd4]
push 2
cmova eax, dword [esp + 0xd8]
push 0x40b6bc
push dword [esp + 0xec]
push eax
push ecx
push dword [esp + 0x44]
lea ecx, [esp + 0x13c]
call fcn.00406036
push ecx
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x90]
call fcn.00405682
lea eax, [esp + 0x178]
push eax
lea ecx, [esp + 0x3c]
call fcn.00404dc7
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x3c]
call fcn.00401ba8
lea ecx, [esp + 0x88]
call fcn.004050b4
lea ecx, [esp + 0x124]
call fcn.00404f75
lea edx, [esp + 0x30]
lea ecx, [esp + 0x38]
call fcn.004024aa
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test al, al
je 0x40437f
lea edx, [esp + 0x38]
lea ecx, [esp + 0x10]
call fcn.004028e5
cmp dword [esp + 0x4c], 7
lea eax, [esp + 0x38]
cmova eax, dword [esp + 0x38]
push eax
call ebx
mov esi, dword [esp + 0x10]
test esi, esi
je 0x404376
xor eax, eax
lea edi, [esp + 0xec]
stosd dword es:[edi], eax
push 7
pop ecx
push 0x40b6c0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [esp + 0x100], 0
lea edi, [esp + 0x110]
mov word [esp + 0xf0], ax
stosd dword es:[edi], eax
mov dword [esp + 0x104], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [esp + 0x120], 0
mov dword [esp + 0x124], ecx
lea ecx, [esp + 0x8c]
mov word [esp + 0x110], ax
call fcn.00404fd1
mov edx, dword [esi]
lea edi, [esp + 0xa0]
mov ecx, dword [esi + 4]
xor eax, eax
stosd dword es:[edi], eax
sub ecx, edx
push ecx
push edx
lea ecx, [esp + 0xa8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [esp + 0xb8], 0
and dword [esp + 0xbc], 0
call fcn.00405a73
lea eax, [esp + 0x88]
push eax
lea edx, [esp + 0xa4]
lea ecx, [esp + 0xc0]
call fcn.00403867
mov edx, dword [esp + 0xb8]
pop ecx
cmp edx, 0xf
jbe 0x40419f
mov ecx, dword [esp + 0xa0]
inc edx
call fcn.00405dc4
and dword [esp + 0xb0], 0
lea ecx, [esp + 0x88]
mov dword [esp + 0xb4], 0xf
mov byte [esp + 0xa0], 0
call fcn.00404f75
mov esi, dword [esp + 0xbc]
jmp 0x4041e2
push ecx
push ecx
mov ecx, esi
call fcn.00404e98
mov edi, eax
cmp edi, 0xffffffff
jne 0x4041f0
add esi, 0x18
cmp esi, dword [esp + 0xc0]
jne 0x4041cf
jmp 0x404352
push edi
push 0
lea eax, [esp + 0x58]
mov ecx, esi
push eax
call fcn.00404e4b
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00405034
lea ecx, [esp + 0xa0]
call fcn.004054b4
add esp, 0x18
lea eax, [esp + 0x88]
lea ecx, [esp + 0xec]
push eax
call fcn.00404d16
lea ecx, [esp + 0x88]
call fcn.004050b4
lea ecx, [esp + 0x50]
call fcn.00404f75
push 0xffffffffffffffff
lea eax, [edi + 1]
mov ecx, esi
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00404e4b
push eax
lea ecx, [esp + 0x110]
call fcn.00405725
lea ecx, [esp + 0x50]
call fcn.00404f75
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x110]
call fcn.00401daa
lea edx, [esp + 0x30]
mov ecx, eax
call fcn.00402504
lea ecx, [esp + 0x50]
call fcn.004050b4
cmp dword [esp + 0xfc], 0
je 0x404352
cmp dword [esp + 0x11c], 0
je 0x404352
call fcn.00402ae9
mov edx, eax
lea ecx, [esp + 0x124]
call fcn.00402a6c
push ecx
lea edx, [esp + 0xf0]
mov esi, eax
lea ecx, [esp + 0x54]
call fcn.004056ec
pop ecx
push esi
push eax
push dword [esp + 0x38]
lea ecx, [esp + 0x94]
call fcn.00405df0
lea ecx, [esp + 0x50]
call fcn.004050b4
lea ecx, [esp + 0x124]
call fcn.004050b4
push 0x38
call fcn.00407b72
mov esi, eax
lea eax, [esp + 0x8c]
pop ecx
push eax
and dword [esi], 0
lea ecx, [esi + 4]
call fcn.00404dc7
lea eax, [esp + 0x10c]
push eax
lea ecx, [esi + 0x1c]
call fcn.00404dc7
xor eax, eax
mov dword [esp + 0x6c], esi
push eax
push eax
push esi
push 0x4048ff
push eax
push eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0x88]
mov dword [esp + 0xb8], eax
call fcn.004050b4
lea ecx, [esp + 0xbc]
call fcn.00404af3
lea ecx, [esp + 0x10c]
call fcn.004050b4
lea ecx, [esp + 0xec]
call fcn.004050b4
lea ecx, [esp + 0x10]
call fcn.00404ba3
lea ecx, [esp + 0x38]
call fcn.004050b4
lea edx, [esp + 0x160]
lea ecx, [esp + 0x10]
call fcn.004028e5
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4047cc
cmp dword [esp + 0x174], 7
lea eax, [esp + 0x160]
cmova eax, dword [esp + 0x160]
push eax
call ebx
lea eax, [esp + 0x70]
xor ebx, ebx
mov dword [esp + 0x2c], eax
lea edi, [esp + 0x148]
xor eax, eax
mov dword [esp + 0x70], ebx
stosd dword es:[edi], eax
lea ecx, [esp + 0x88]
push 0x40b6c0
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x160], 7
mov word [esp + 0x14c], ax
call fcn.00404fd1
mov edx, dword [esi]
lea edi, [esp + 0xa0]
mov ecx, dword [esi + 4]
xor eax, eax
stosd dword es:[edi], eax
sub ecx, edx
push ecx
push edx
lea ecx, [esp + 0xa8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
call fcn.00405a73
lea eax, [esp + 0x88]
push eax
lea edx, [esp + 0xa4]
lea ecx, [esp + 0x140]
call fcn.00403867
mov edx, dword [esp + 0xb8]
pop ecx
push 0xf
pop esi
cmp edx, esi
jbe 0x404475
mov ecx, dword [esp + 0xa0]
inc edx
call fcn.00405dc4
lea ecx, [esp + 0x88]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], esi
mov byte [esp + 0xa0], bl
call fcn.00404f75
mov eax, dword [esp + 0x140]
mov edi, ebx
mov esi, dword [esp + 0x13c]
mov dword [esp + 0x30], eax
cmp esi, eax
je 0x4045fc
push ecx
push ecx
mov ecx, esi
call fcn.00404e98
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4045ef
push ebx
push 0
lea eax, [esp + 0x12c]
mov ecx, esi
push eax
inc edi
call fcn.00404e4b
push 0xffffffffffffffff
lea eax, [ebx + 1]
mov ecx, esi
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.00404e4b
cmp edi, 1
jne 0x40452f
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x14c]
call fcn.00405725
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x14c]
call fcn.00401daa
lea edx, [esp + 0xbc]
mov ecx, eax
call fcn.00402504
lea ecx, [esp + 0x50]
call fcn.004050b4
push ecx
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x40]
call fcn.00405682
cmp byte [0x40e990], 0
je 0x40458a
lea ecx, [esp + 0x38]
call fcn.0040390e
test al, al
je 0x40458a
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x38]
push ecx
cmp eax, dword [esp + 0x88]
je 0x40457d
mov ecx, eax
call fcn.00404dc7
add dword [esp + 0x80], 0x18
jmp 0x40458a
push eax
lea ecx, [esp + 0x84]
call fcn.00406906
sub esp, 0x18
lea eax, [esp + 0x13c]
mov ecx, esp
push eax
call fcn.00405034
lea ecx, [esp + 0xa0]
call fcn.004054b4
add esp, 0x18
lea eax, [esp + 0x38]
lea ecx, [esp + 0x2c]
push eax
lea eax, [esp + 0x8c]
push eax
push edi
call fcn.00404908
lea ecx, [esp + 0x88]
call fcn.004050b4
lea ecx, [esp + 0x38]
call fcn.004050b4
lea ecx, [esp + 0xec]
call fcn.00404f75
lea ecx, [esp + 0x124]
call fcn.00404f75
add esi, 0x18
cmp esi, dword [esp + 0x30]
jne 0x4044b2
mov ebx, dword [esp + 0x74]
mov eax, ebx
mov esi, dword [esp + 0x70]
sub eax, esi
test eax, 0xfffffffc
je 0x4047ab
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov eax, ecx
mov dword [esp + 0xbc], eax
mov edi, ecx
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], ecx
cmp esi, ebx
je 0x4046a0
push ecx
push ecx
push dword [esi]
push 0x4049a6
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x30], eax
cmp edi, dword [esp + 0xc4]
je 0x404662
mov dword [edi], eax
add edi, 4
mov dword [esp + 0xc0], edi
jmp 0x40467b
lea eax, [esp + 0x30]
push eax
push edi
lea ecx, [esp + 0xc4]
call fcn.00406b85
mov edi, dword [esp + 0xc0]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 4
push 0
pop ecx
cmp esi, ebx
jne 0x404636
mov eax, dword [esp + 0xbc]
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
cmp eax, edi
je 0x4046cd
mov esi, dword [eax]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
add eax, 4
mov dword [esp + 0x2c], eax
cmp eax, edi
jne 0x4046a4
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov byte [esp + 0xf], 1
cmp esi, ebx
je 0x4046f8
mov byte [esp + 0xf], 1
mov eax, dword [esi]
mov edi, dword [eax + 0x34]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x4046db
cmp edi, 1
jne 0x404712
add esi, 4
cmp esi, ebx
jne 0x4046db
mov bl, byte [esp + 0xf]
cmp byte [0x40e990], 0
je 0x404724
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x7c]
jmp 0x404720
xor bl, bl
jmp 0x4046fc
mov ecx, esi
call fcn.00403aad
add esi, 0x18
cmp esi, edi
jne 0x404716
test bl, bl
je 0x40479f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lea edi, [esp + 0x38]
stosd dword es:[edi], eax
lea ecx, [esp + 0x50]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [esp + 0x48], 0
mov dword [esp + 0x4c], 7
mov word [esp + 0x38], ax
call fcn.00402871
sub esp, 0x28
lea edx, [esp + 0x170]
mov ecx, esp
mov dword [ecx + 4], edx
mov edx, eax
mov dword [ecx], vtable.std::_Func_impl_no_alloc_class__int___cdecl_main_void_::_74::_lambda_5___bool___.0
mov dword [ecx + 0x24], ecx
lea ecx, [esp + 0x60]
push ecx
push 0x40b6c4
lea ecx, [esp + 0x178]
call fcn.004031e2
add esp, 0x30
lea ecx, [esp + 0x50]
call fcn.004050b4
lea ecx, [esp + 0x38]
call fcn.004050b4
lea ecx, [esp + 0xbc]
call fcn.004049fd
lea ecx, [esp + 0x13c]
call fcn.00404af3
lea ecx, [esp + 0x148]
call fcn.004050b4
lea ecx, [esp + 0x70]
call fcn.00404a1f
lea ecx, [esp + 0x10]
call fcn.00404ba3
lea ecx, [esp + 0x104]
call fcn.00404a5a
lea ecx, [esp + 0x6c]
call fcn.00404a80
lea ecx, [esp + 0x160]
call fcn.004050b4
lea ecx, [esp + 0x178]
call fcn.004050b4
lea ecx, [esp + 0x7c]
call fcn.00404aa3
lea ecx, [esp + 0xd4]
call fcn.00404f75
lea ecx, [esp + 0x14]
call fcn.00404f75
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004015e8
int3