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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f2fc
mov eax, dword fs:[0]
push eax
sub esp, 0x694
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x694], ecx
mov eax, dword [ebp - 0x694]
mov ecx, dword [eax + 4]
sub ecx, 0x42c
mov dword [ebp - 0x224], ecx
push 0
lea edx, [ebp - 0x234]
push edx
mov ecx, dword [ebp - 0x224]
add ecx, 0x51c
call fcn.0048fc20
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x694]
call fcn.0047b1e0
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
add ecx, 0x20c
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x234]
add ecx, 8
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x694]
add ecx, 0x38
call fcn.00469030
push eax
lea ecx, [ebp - 0x22c]
call fcn.00468df0
mov dword [ebp - 4], 0
xor ecx, ecx
mov word [ebp - 0x21c], cx
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.0053c870
add esp, 0xc
mov eax, dword [ebp - 0x230]
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4792cd
mov ecx, dword [ebp - 0x230]
add ecx, 4
push ecx
push 0x104
lea edx, [ebp - 0x21c]
push edx
call fcn.00540f88
add esp, 0xc
jmp 0x47937b
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x22c]
call fcn.004dfdf0
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47937b
mov dword [ebp - 0x278], 0
push 0x38
push 0
lea edx, [ebp - 0x274]
push edx
call fcn.0053c870
add esp, 0xc
mov dword [ebp - 0x278], 0x3c
mov dword [ebp - 0x274], 0xc
mov dword [ebp - 0x25c], 5
lea ecx, [ebp - 0x22c]
call fcn.004dfdf0
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x66c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00468e10
mov eax, dword [ebp - 0x66c]
jmp 0x4795e5
call fcn.004039b0
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x228], ecx
cmp dword [ebp - 0x228], 0
jne 0x4793a7
mov dword [ebp - 0x698], 0
jmp 0x47941d
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0x3fffffff
jle 0x4793d5
mov dword [ebp - 0x69c], 0
jmp 0x479411
mov eax, dword [ebp - 0x220]
shl eax, 1
call fcn.0053fdd0
mov dword [ebp - 0x6a0], esp
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x220]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x6a0]
push eax
call fcn.00403260
mov dword [ebp - 0x69c], eax
mov ecx, dword [ebp - 0x69c]
mov dword [ebp - 0x698], ecx
mov edx, dword [ebp - 0x698]
push edx
lea ecx, [ebp - 0x688]
call fcn.00403970
mov byte [ebp - 4], 1
lea eax, [ebp - 0x688]
push eax
call fcn.0056a8c0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x688]
call fcn.00403230
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
jne 0x479568
lea edx, [ebp - 0x21c]
push edx
call fcn.0043d6f0
add esp, 4
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0
je 0x4794d5
mov eax, dword [ebp - 0x694]
mov ecx, dword [eax + 4]
sub ecx, 0x42c
mov dword [ebp - 0x280], ecx
push 0
lea edx, [ebp - 0x21c]
push edx
mov ecx, dword [ebp - 0x280]
call fcn.00446e70
mov dword [ebp - 0x68c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00468e10
mov eax, dword [ebp - 0x68c]
jmp 0x4795e5
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x694]
call fcn.0048dd00
test eax, eax
je 0x479551
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x664]
call fcn.004c9300
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x694]
push edx
lea ecx, [ebp - 0x664]
call fcn.004c98a0
mov eax, dword [ebp - 0x694]
mov ecx, dword [eax + 4]
sub ecx, 0x42c
mov dword [ebp - 0x284], ecx
mov ecx, dword [ebp - 0x284]
call dword [sym.imp.DuiLib.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push eax
lea ecx, [ebp - 0x664]
call fcn.004c9760
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x664]
call fcn.00473b50
jmp 0x479566
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x21c]
push eax
mov ecx, 0x5fd228
call fcn.004b83f0
jmp 0x4795c3
mov ecx, dword [ebp - 0x694]
mov edx, dword [ecx + 4]
sub edx, 0x42c
mov dword [ebp - 0x668], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x694]
call fcn.0047b1e0
push eax
mov ecx, dword [ebp - 0x668]
add ecx, 0x51c
call fcn.0048fca0
mov ecx, dword [ebp - 0x694]
mov ecx, dword [ecx + 4]
call fcn.004804a0
push 2
push 2
push 0
mov edx, dword [ebp - 0x694]
mov ecx, dword [edx + 4]
add ecx, 4
call fcn.00477ac0
mov dword [ebp - 0x690], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00468e10
mov eax, dword [ebp - 0x690]
lea esp, [ebp - 0x6a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret 8