Function at 0x405372
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x294]
sub esp, 0x330
mov eax, dword [0x40b040]
xor eax, ebp
mov dword [ebp + 0x290], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x2a4]
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 4
call fcn.004024ca
pop ecx
push esi
push dword [ebp + 0x29c]
mov ecx, 0x40b0a0
push esi
call fcn.0040294c
push esi
lea ecx, [ebp + 0x20]
call fcn.00405328
push edi
lea ecx, [ebp + 0x20]
call fcn.00405157
mov edi, 0x409928
push edi
lea ecx, [ebp + 0x24]
call fcn.00403fdd
test eax, eax
je 0x4055b4
push 0x40b150
lea ecx, [ebp + 0x80]
mov dword [ebp + 0x84], esi
call fcn.0040153b
push 0x409924
lea eax, [ebp + 0x7c]
push eax
lea ecx, [ebp + 0x20]
call fcn.00404be5
push eax
lea ecx, [ebp + 0x74]
call fcn.004016d1
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x78]
call fcn.004016d1
mov ecx, dword [ebp + 0x74]
add ecx, 0xfffffff0
call fcn.00401256
mov ecx, dword [ebp + 0x7c]
add ecx, 0xfffffff0
call fcn.00401256
push 0xc0000000
push esi
lea ecx, [ebp + 0x84]
call fcn.00402600
cmp eax, esi
jge 0x40549d
or esi, 0xffffffff
mov ecx, dword [ebp + 0x78]
add ecx, 0xfffffff0
call fcn.00401256
mov ecx, dword [ebp + 0x80]
add ecx, 0xfffffff0
call fcn.00401256
lea ecx, [ebp + 0x84]
call fcn.004035e6
lea ecx, [ebp + 0x20]
call fcn.00404fcf
mov ecx, dword [ebp + 0x290]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040781b
add ebp, 0x294
leave
ret 0x10
mov dword [ebp + 0x64], esi
push edi
lea eax, [ebp + 0x6c]
push eax
lea ecx, [ebp + 0x20]
call fcn.00404be5
push eax
lea ecx, [ebp + 0x7c]
call fcn.004016d1
lea eax, [ebp + 0x7c]
push eax
lea ecx, [ebp + 0x70]
call fcn.004016d1
mov ebx, dword [ebp + 0x70]
push esi
lea eax, [ebp + 0x84]
push eax
push ebx
lea ecx, [ebp + 0x6b]
call fcn.00404cb7
lea ecx, [ebx - 0x10]
mov dword [ebp + 0x74], eax
call fcn.00401256
mov ecx, dword [ebp + 0x7c]
add ecx, 0xfffffff0
call fcn.00401256
mov ecx, dword [ebp + 0x6c]
add ecx, 0xfffffff0
call fcn.00401256
cmp dword [ebp + 0x74], esi
je 0x40551b
cmp dword [ebp + 0x74], 0x80004004
je 0x40550e
inc dword [ebp + 0x64]
cmp dword [ebp + 0x64], 3
jl 0x4054a0
cmp dword [ebp + 0x74], esi
jge 0x40551b
push 0xfffffffffffffffe
pop esi
jmp 0x405455
lea eax, [ebp + 0x88]
push eax
lea ecx, [ebp + 0x80]
call fcn.00401900
push str..EXE
lea ecx, [ebp + 0x80]
call fcn.0040448a
mov edi, dword [ebp + 0x80]
push edi
lea ecx, [ebp + 0x84]
call fcn.004026fd
push 0x38
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0x1c], 0x3c
call fcn.004074f0
mov eax, dword [ebp + 0x78]
mov dword [ebp - 8], eax
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], str.open
mov dword [ebp - 0xc], edi
mov dword [ebp], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4055a8
push 0xffffffffffffffff
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x405455
lea ecx, [ebp - 0x9c]
mov dword [ebp + 0x80], esi
call fcn.004040f4
push 0x409900
lea ecx, [ebp + 0x24]
call fcn.00403fdd
test eax, eax
mov edi, dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
jne 0x405653
push 0x4098fc
lea eax, [ebp + 0x6c]
push eax
lea ecx, [ebp + 0x20]
call fcn.00404be5
push eax
lea ecx, [ebp + 0x7c]
call fcn.004016d1
lea eax, [ebp + 0x7c]
push eax
lea ecx, [ebp + 0x78]
call fcn.004016d1
push dword [ebp + 0x78]
call edi
mov ecx, dword [ebp + 0x78]
add ecx, 0xfffffff0
mov dword [ebp + 0x80], eax
call fcn.00401256
mov ecx, dword [ebp + 0x7c]
add ecx, 0xfffffff0
call fcn.00401256
mov ecx, dword [ebp + 0x6c]
add ecx, 0xfffffff0
call fcn.00401256
push dword [ebp + 0x80]
call ebx
test eax, eax
jne 0x405653
lea ecx, [ebp - 0x9c]
call fcn.00404320
or esi, 0xffffffff
jmp 0x405479
push 0x4098f8
lea eax, [ebp + 0x7c]
push eax
lea ecx, [ebp + 0x20]
call fcn.00404be5
push eax
lea ecx, [ebp + 0x78]
call fcn.004016d1
push 0x4098f4
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp + 0x20]
call fcn.00404be5
push dword [eax]
call edi
push eax
lea eax, [ebp + 0x78]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00405e65
mov ecx, dword [ebp + 0x70]
add ecx, 0xfffffff0
call fcn.00401256
mov ecx, dword [ebp + 0x78]
add ecx, 0xfffffff0
call fcn.00401256
mov ecx, dword [ebp + 0x7c]
add ecx, 0xfffffff0
call fcn.00401256
push dword [ebp + 0x80]
mov dword [ebp + 0x54], esi
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x60], esi
call ebx
test eax, eax
je 0x4056f0
push 0xfffffffffffffff0
push dword [ebp + 0x80]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x20000000
jne 0x4056f0
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x80]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040590c
push esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040600b
lea ecx, [ebp - 0x9c]
mov esi, eax
call fcn.00404320
mov ecx, 0x40b0a0
call fcn.004044f0
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x405479