Function at 0x40d690
Capabilities:
Check if file exists
Create process on windows
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x447a70
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x4581b0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4581b0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
push 0xffffffffffffffff
mov edi, 7
lea eax, [esi + 8]
push ebp
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebp
mov word [esp + 0xb4], bp
call fcn.004019b0
mov dword [esp + 0xd0], ebp
push 0xffffffffffffffff
lea eax, [esi + 0x24]
push ebp
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], bp
call fcn.004019b0
mov byte [esp + 0xd0], 1
push 2
push 0x44d92c
lea esi, [esp + 0x94]
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebp
mov word [esp + 0x98], bp
call fcn.00401aa0
mov byte [esp + 0xd0], 2
mov eax, dword [esp + 0xac]
mov esi, 8
cmp dword [esp + 0xc0], esi
jae 0x40d77a
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d7fe
cmp dword [esp + 0xa4], esi
jb 0x40d79f
mov eax, dword [esp + 0x90]
push eax
call fcn.00433114
add esp, 4
cmp dword [esp + 0x88], esi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebp
mov word [esp + 0x90], bp
jb 0x40d7cb
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00433114
add esp, 4
cmp dword [esp + 0xc0], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebp
mov word [esp + 0x74], bp
jb 0x40d7f7
mov edx, dword [esp + 0xac]
push edx
call fcn.00433114
add esp, 4
xor al, al
jmp 0x40da3d
cmp dword [esp + 0x84], ebp
jne 0x40d85e
mov edi, 2
lea ebx, [esp + 0xa8]
call fcn.0040dc90
cmp eax, 0xffffffff
je 0x40d859
push eax
mov eax, ebx
push eax
xor ecx, ecx
lea esi, [esp + 0x5c]
call fcn.0040db10
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x78]
mov byte [esp + 0xd8], 3
call fcn.004019b0
cmp dword [esp + 0x6c], 8
jb 0x40d854
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00433114
add esp, 4
mov esi, 8
mov edi, 7
push 0x3c
lea edx, [esp + 0x1c]
push ebp
push edx
call fcn.00434f20
add esp, 0xc
mov dword [esp + 0x18], 0x3c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [esp + 0xc0], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x540
jb 0x40d89e
mov eax, dword [esp + 0xac]
mov dword [esp + 0x28], eax
jmp 0x40d8a9
lea ecx, [esp + 0xac]
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x88], esi
jb 0x40d8bc
mov edx, dword [esp + 0x74]
mov dword [esp + 0x30], edx
jmp 0x40d8c4
lea eax, [esp + 0x74]
mov dword [esp + 0x30], eax
cmp dword [esp + 0xa4], esi
jb 0x40d8da
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x2c], ecx
jmp 0x40d8e5
lea edx, [esp + 0x90]
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x38], ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40d974
cmp dword [esp + 0xa4], esi
jb 0x40d911
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00433114
add esp, 4
cmp dword [esp + 0x88], esi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebp
mov word [esp + 0x90], bp
jb 0x40d93d
mov edx, dword [esp + 0x74]
push edx
call fcn.00433114
add esp, 4
cmp dword [esp + 0xc0], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebp
mov word [esp + 0x74], bp
jb 0x40d7f7
mov eax, dword [esp + 0xac]
push eax
call fcn.00433114
add esp, 4
xor al, al
jmp 0x40da3d
mov eax, dword [esp + 0x50]
cmp eax, ebp
je 0x40d9ca
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40d9a1
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc0], esi
mov eax, dword [esp + 0xac]
jae 0x40d9c3
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0xa4], esi
jb 0x40d9e3
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00433114
add esp, 4
cmp dword [esp + 0x88], esi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebp
mov word [esp + 0x90], bp
jb 0x40da0f
mov edx, dword [esp + 0x74]
push edx
call fcn.00433114
add esp, 4
cmp dword [esp + 0xc0], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebp
mov word [esp + 0x74], bp
jb 0x40da3b
mov eax, dword [esp + 0xac]
push eax
call fcn.00433114
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004337a7
add esp, 0xc0
ret