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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xb4
mov eax, dword [0x41b214]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov edi, ecx
lea eax, [edi + 8]
lea esi, [ebp + 0x58]
call fcn.004039d2
lea eax, [edi + 0x24]
lea esi, [ebp + 0x3c]
call fcn.004039d2
mov eax, 0x418380
lea ecx, [ebp + 0x20]
call fcn.00404e86
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x404c73
lea eax, [ebp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404cb5
xor edi, edi
push edi
push 1
lea esi, [ebp + 0x20]
call fcn.00403ae3
push edi
push 1
lea esi, [ebp + 0x3c]
call fcn.00403ae3
push edi
push 1
lea esi, [ebp + 0x58]
call fcn.00403ae3
xor al, al
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.004076ec
add ebp, 0x78
leave
ret
cmp dword [ebp + 0x50], 0
push ebx
jne 0x404d74
mov edi, 0x418388
push edi
call fcn.00407e20
pop ecx
mov ecx, dword [ebp + 0x6c]
test ecx, ecx
jbe 0x404d30
cmp ecx, 0xffffffff
jbe 0x404cdd
or edx, 0xffffffff
jmp 0x404ce0
lea edx, [ecx - 1]
cmp dword [ebp + 0x70], 8
mov ecx, dword [ebp + 0x5c]
jae 0x404cec
lea ecx, [ebp + 0x5c]
lea ecx, [ecx + edx*2]
test eax, eax
mov ebx, eax
mov edx, edi
jbe 0x404d04
movzx esi, word [ecx]
cmp word [edx], si
je 0x404d06
inc edx
inc edx
dec ebx
jne 0x404cfa
xor edx, edx
test edx, edx
je 0x404d1e
cmp dword [ebp + 0x70], 8
mov edx, dword [ebp + 0x5c]
jae 0x404d16
lea edx, [ebp + 0x5c]
cmp ecx, edx
je 0x404d30
dec ecx
dec ecx
jmp 0x404cef
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x404d2a
lea eax, [ebp + 0x5c]
sub ecx, eax
sar ecx, 1
jmp 0x404d33
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x404d74
and dword [ebp - 0x28], 0
and word [ebp - 0x38], 0
push ecx
lea eax, [ebp - 0x3c]
push eax
xor ebx, ebx
lea eax, [ebp + 0x58]
mov dword [ebp - 0x24], 7
call fcn.004039f1
push 0xffffffffffffffff
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp - 0x3c]
call fcn.004039f1
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x3c]
call fcn.00403ae3
jmp 0x404d77
xor edi, edi
inc edi
push 0x3c
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.00407c10
add esp, 0xc
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 8
pop esi
cmp dword [ebp + 0x70], esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x5c]
mov dword [ebp - 0x1c], 0x540
jae 0x404dab
lea eax, [ebp + 0x5c]
cmp dword [ebp + 0x54], esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x40]
jae 0x404db9
lea eax, [ebp + 0x40]
cmp dword [ebp + 0x38], esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x24]
jae 0x404dc7
lea eax, [ebp + 0x24]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x404e0c
mov dword [0x41c188], edi
xor bl, bl
push 0
push edi
lea esi, [ebp + 0x20]
call fcn.00403ae3
push 0
push edi
lea esi, [ebp + 0x3c]
call fcn.00403ae3
push 0
push edi
lea esi, [ebp + 0x58]
call fcn.00403ae3
mov al, bl
pop ebx
jmp 0x404ca4
cmp dword [ebp + 0x18], ebx
je 0x404e56
push 0xffffffffffffffff
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
mov dword [ebp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x404e33
mov dword [ebp + 0x1c], ebx
mov eax, dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov dword [0x41c188], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x70], esi
mov eax, dword [ebp + 0x5c]
jae 0x404e4f
lea eax, [ebp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
jmp 0x404de3