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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x613e3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28c
push ebx
mov ebx, ecx
mov ecx, dword [0x6ec8c4]
push esi
push edi
mov dword [ebp - 0x14], ebx
test ecx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
je 0x47894b
mov eax, dword [ebp + 8]
push eax
call fcn.004ac610
mov esi, eax
test esi, esi
je 0x47894b
mov al, byte [esi + 0x14]
test al, al
je 0x47878f
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x47878f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x47878f
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov al, byte [esi + 0x15]
test al, al
je 0x47882a
push 0
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x6ec0c8
call fcn.005fa8c7
push 1
lea ecx, [ebp - 0x298]
call fcn.0051a320
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 1
call fcn.005f6856
cmp eax, 1
jne 0x4787df
mov ecx, ebx
call fcn.00464090
mov ecx, dword [ebx + 0x14c]
call fcn.004370a0
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 5
call fcn.005fa859
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 4
call fcn.005f5000
lea ecx, [ebp - 0x1f8]
mov byte [ebp - 4], 3
call fcn.00602365
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.0060239d
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 0
call fcn.005f6497
mov al, byte [esi + 0x17]
test al, al
je 0x4788f2
mov ecx, ebx
call fcn.00464090
push 0
mov ecx, ebx
call fcn.005f9f56
mov edx, dword [0x6ec8e0]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x478868
mov eax, dword [0x6ec8e0]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x6ec0c8
call fcn.005fa8c7
push 3
lea ecx, [ebp - 0x174]
call fcn.0051a320
mov edx, dword [esi + 0x3c]
xor ecx, ecx
mov cl, byte [esi + 0x18]
mov byte [ebp - 4], 6
mov dword [ebp - 0x118], ecx
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x114], edx
call fcn.005f6856
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xa
call fcn.005fa859
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 9
call fcn.005f5000
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 8
call fcn.00602365
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 7
call fcn.0060239d
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 0
call fcn.005f6497
mov al, byte [esi + 0x16]
test al, al
je 0x47894b
xor bl, bl
xor edi, edi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x1c8]
cmp edi, dword [eax + 8]
jge 0x478942
mov edx, dword [eax + 4]
mov ecx, edi
shl ecx, 4
mov esi, dword [edx + ecx]
cmp dword [esi + 0x8cc], 1
jne 0x478931
mov eax, dword [esi + 8]
test eax, eax
je 0x47892f
mov ecx, esi
call fcn.005ab8f0
jmp 0x478931
mov bl, 1
mov eax, dword [esi + 8]
test eax, eax
je 0x47893f
mov dword [esi + 8], 0
inc edi
jmp 0x4788fd
test bl, bl
jne 0x47894b
call fcn.00461b40
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4