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

Disassembly:
push 0xffffffffffffffff
push 0x553d38
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x1bc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1cc]
push 0xd
xor ebp, ebp
mov edi, 7
push str.XdictTool.exe
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebp
mov word [esp + 0x24], bp
call fcn.004029f0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x118]
mov dword [esp + 0x1c4], ebp
call fcn.004037a0
mov ebx, 8
mov byte [esp + 0x1c4], 2
cmp dword [esp + 0x30], ebx
jb 0x478501
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004e946d
add esp, 4
cmp dword [esp + 0x130], ebx
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebp
mov word [esp + 0x1c], bp
jae 0x478525
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x478830
test al, 0x10
jne 0x478830
mov ecx, dword [0x5c29c0]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 0x464
call eax
push 0x7e
lea ecx, [esp + 0x13a]
push ebp
push ecx
mov esi, eax
mov word [esp + 0x140], bp
call fcn.00516c20
add esp, 0xc
push 0xa
push 0x40
lea edx, [esp + 0x13c]
push edx
push esi
call fcn.00514946
add esp, 0x10
push ebx
push str.AUTO:_1_
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebp
mov word [esp + 0x40], bp
call fcn.004029f0
lea eax, [esp + 0x34]
push eax
mov ecx, str._SET:_
lea edi, [esp + 0xa8]
mov byte [esp + 0x1c8], 3
call fcn.004027c0
add esp, 4
push eax
lea ecx, [esp + 0x138]
lea edi, [esp + 0x70]
mov byte [esp + 0x1c8], 4
call fcn.004027c0
add esp, 4
push eax
mov ecx, str.__PARAM:_
lea edi, [esp + 0x8c]
mov byte [esp + 0x1c8], 5
call fcn.004027c0
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
push eax
lea esi, [esp + 0x58]
mov byte [esp + 0x1cc], 6
call fcn.00405480
push eax
mov ecx, 0x5662c0
lea edi, [esp + 0x108]
mov byte [esp + 0x1d0], 7
call fcn.004027c0
add esp, 0xc
cmp dword [esp + 0x68], ebx
jb 0x478647
mov edx, dword [esp + 0x54]
push edx
call fcn.004e946d
add esp, 4
mov esi, 7
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebp
mov word [esp + 0x54], bp
cmp dword [esp + 0xa0], ebx
jb 0x478672
mov eax, dword [esp + 0x8c]
push eax
call fcn.004e946d
add esp, 4
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebp
mov word [esp + 0x8c], bp
cmp dword [esp + 0x84], ebx
jb 0x47869e
mov ecx, dword [esp + 0x70]
push ecx
call fcn.004e946d
add esp, 4
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebp
mov word [esp + 0x70], bp
cmp dword [esp + 0xbc], ebx
jb 0x4786ca
mov edx, dword [esp + 0xa8]
push edx
call fcn.004e946d
add esp, 4
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], ebp
mov word [esp + 0xa8], bp
mov byte [esp + 0x1c4], 0xd
cmp dword [esp + 0x4c], ebx
jb 0x4786fb
mov eax, dword [esp + 0x38]
push eax
call fcn.004e946d
add esp, 4
cmp dword [esp + 0x114], ebx
mov edi, dword [esp + 0x100]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], bp
jae 0x47871f
lea edi, [esp + 0x100]
call fcn.004291a0
cmp dword [0x5b8664], ebp
je 0x478843
mov eax, dword [0x5c29c4]
cmp eax, 3
je 0x478763
cmp eax, 2
je 0x478763
mov ecx, dword [0x5c29c0]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 0x464
call eax
cmp eax, 2
je 0x478843
push 0x3c
lea ecx, [esp + 0xc4]
push ebp
push ecx
call fcn.00516c20
add esp, 0xc
cmp dword [esp + 0x130], ebx
mov dword [esp + 0xc0], 0x3c
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xcc], str.open
jb 0x4787ac
mov edx, dword [esp + 0x11c]
mov dword [esp + 0xd0], edx
jmp 0x4787ba
lea eax, [esp + 0x11c]
mov dword [esp + 0xd0], eax
cmp dword [esp + 0x114], ebx
jb 0x4787d3
mov ecx, dword [esp + 0x100]
mov dword [esp + 0xd4], ecx
jmp 0x4787e1
lea edx, [esp + 0x100]
mov dword [esp + 0xd4], edx
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0xe0], ebp
mov dword [esp + 0xc8], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [esp + 0x114], ebx
jb 0x47881a
mov ecx, dword [esp + 0x100]
push ecx
call fcn.004e946d
add esp, 4
mov dword [esp + 0x114], esi
mov dword [esp + 0x110], ebp
mov word [esp + 0x100], bp
cmp dword [esp + 0x130], ebx
jb 0x47888b
mov edx, dword [esp + 0x11c]
push edx
jmp 0x478883
cmp dword [esp + 0x114], ebx
jb 0x47885c
mov eax, dword [esp + 0x100]
push eax
call fcn.004e946d
add esp, 4
cmp dword [esp + 0x130], ebx
mov dword [esp + 0x114], esi
mov dword [esp + 0x110], ebp
mov word [esp + 0x100], bp
jb 0x47888b
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.004e946d
add esp, 4
mov ecx, dword [esp + 0x1bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.0050fe87
add esp, 0x1b4
ret 4