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

Disassembly:
push 0xffffffffffffffff
push 0x555f40
mov eax, dword fs:[0]
push eax
sub esp, 0x608
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x600], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x61c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x62c]
push 0xd
xor ebp, ebp
mov edi, 7
push str.XdictTool.exe
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
mov word [esp + 0x20], bp
call fcn.004029f0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x578]
mov dword [esp + 0x624], ebp
call fcn.004037a0
mov ebx, 8
mov byte [esp + 0x624], 2
cmp dword [esp + 0x2c], ebx
jb 0x478021
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004e946d
add esp, 4
cmp dword [esp + 0x590], ebx
mov eax, dword [esp + 0x57c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
jae 0x478045
lea eax, [esp + 0x57c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4782a7
test al, 0x10
jne 0x4782a7
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 + 0x59a]
push ebp
push ecx
mov esi, eax
mov word [esp + 0x5a0], bp
call fcn.00516c20
add esp, 0xc
push 0xa
push 0x40
lea edx, [esp + 0x59c]
push edx
push esi
call fcn.00514946
add esp, 0x10
push ebx
push str.AUTO:_0_
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 + 0x8c]
mov byte [esp + 0x628], 3
call fcn.004027c0
add esp, 4
push eax
lea ecx, [esp + 0x598]
lea edi, [esp + 0x70]
mov byte [esp + 0x628], 4
call fcn.004027c0
add esp, 4
push eax
mov ecx, str.__PARAM:_
lea edi, [esp + 0xa8]
mov byte [esp + 0x628], 5
call fcn.004027c0
add esp, 4
mov ecx, dword [esp + 0x30]
push ecx
push eax
lea esi, [esp + 0x58]
mov byte [esp + 0x62c], 6
call fcn.00405480
push eax
mov ecx, 0x5662c0
lea edi, [esp + 0x568]
mov byte [esp + 0x630], 7
call fcn.004027c0
add esp, 0xc
cmp dword [esp + 0x68], ebx
jb 0x478167
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 + 0xbc], ebx
jb 0x478192
mov eax, dword [esp + 0xa8]
push eax
call fcn.004e946d
add esp, 4
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], ebp
mov word [esp + 0xa8], bp
cmp dword [esp + 0x84], ebx
jb 0x4781be
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 + 0xa0], ebx
jb 0x4781ea
mov edx, dword [esp + 0x8c]
push edx
call fcn.004e946d
add esp, 4
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebp
mov word [esp + 0x8c], bp
mov byte [esp + 0x624], 0xd
cmp dword [esp + 0x4c], ebx
jb 0x47821b
mov eax, dword [esp + 0x38]
push eax
call fcn.004e946d
add esp, 4
cmp dword [esp + 0x574], ebx
mov edi, dword [esp + 0x560]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], bp
jae 0x47823f
lea edi, [esp + 0x560]
call fcn.004291a0
cmp dword [0x5b8664], ebp
jne 0x4782c1
call fcn.00477f30
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x478260
xor edi, edi
push 0x40040
push 0x574b54
push 0x574b64
push edi
call fcn.00447b60
add esp, 0x10
cmp dword [esp + 0x574], ebx
jb 0x478291
mov ecx, dword [esp + 0x560]
push ecx
call fcn.004e946d
add esp, 4
mov dword [esp + 0x574], esi
mov dword [esp + 0x570], ebp
mov word [esp + 0x560], bp
cmp dword [esp + 0x590], ebx
jb 0x478430
mov edx, dword [esp + 0x57c]
push edx
jmp 0x478428
lea esi, [esp + 0x14]
call fcn.00429170
mov byte [esp + 0x624], 0xe
cmp dword [eax + 0x18], ebx
jb 0x4782dc
mov eax, dword [eax + 4]
jmp 0x4782df
add eax, 4
push ebp
push eax
push 0x574b74
lea eax, [esp + 0x108]
push eax
call fcn.00443180
mov byte [esp + 0x624], 0x10
cmp dword [esp + 0x2c], ebx
jb 0x47830e
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004e946d
add esp, 4
mov esi, 7
lea ecx, [esp + 0xfc]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
call fcn.004f5e6b
cmp eax, 1
jne 0x4783d3
push 0x3c
lea edx, [esp + 0xc4]
push ebp
push edx
call fcn.00516c20
add esp, 0xc
cmp dword [esp + 0x590], ebx
mov dword [esp + 0xc0], 0x3c
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xcc], str.open
jb 0x47837e
mov eax, dword [esp + 0x57c]
mov dword [esp + 0xd0], eax
jmp 0x47838c
lea ecx, [esp + 0x57c]
mov dword [esp + 0xd0], ecx
cmp dword [esp + 0x574], ebx
jb 0x4783a5
mov edx, dword [esp + 0x560]
mov dword [esp + 0xd4], edx
jmp 0x4783b3
lea eax, [esp + 0x560]
mov dword [esp + 0xd4], eax
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0xe0], ebp
mov dword [esp + 0xc8], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea edx, [esp + 0xfc]
push edx
mov byte [esp + 0x628], 0xd
call fcn.00443470
cmp dword [esp + 0x574], ebx
jb 0x478401
mov eax, dword [esp + 0x560]
push eax
call fcn.004e946d
add esp, 4
cmp dword [esp + 0x590], ebx
mov dword [esp + 0x574], esi
mov dword [esp + 0x570], ebp
mov word [esp + 0x560], bp
jb 0x478430
mov ecx, dword [esp + 0x57c]
push ecx
call fcn.004e946d
add esp, 4
mov ecx, dword [esp + 0x61c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x600]
xor ecx, esp
call fcn.0050fe87
add esp, 0x614
ret 4