Function at 0x477050
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x692921
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x73d6e0]
xor eax, esp
mov dword [esp + 0x370], eax
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x384]
mov dword fs:[0], eax
mov eax, dword [esp + 0x394]
xorps xmm0, xmm0
movq qword [esp + 0x150], xmm0
mov dword [esp + 0x158], 0
mov dword [esp + 0xd0], eax
mov dword [esp + 0x150], 0
mov dword [esp + 0x154], 0
mov dword [esp + 0x158], 0
mov dword [esp + 0x38c], 0
lea eax, [esp + 0x150]
push eax
call fcn.004879b0
mov eax, dword [esp + 0x154]
mov esi, dword [esp + 0x150]
cmp esi, eax
je 0x47791c
xor eax, eax
push 0x206
push eax
mov word [esp + 0x17c], ax
lea eax, [esp + 0x17e]
push eax
call fcn.00549c70
add esp, 0xc
lea eax, [esp + 0x174]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [esp + 0x130], eax
lea edi, [esi + 0x14]
lea ebx, [ebx]
mov dword [esp + 0x148], 0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x14c], 0xf
mov dword [esp + 0x148], 0
mov byte [esp + 0x138], 0
mov byte [esp + 0x38c], 1
cmp dword [edi], 8
jb 0x477186
mov ecx, dword [edi - 0x14]
jmp 0x477189
lea ecx, [edi - 0x14]
mov edx, dword [edi - 4]
lea eax, [esp + 0x138]
push eax
call fcn.00427f60
add esp, 4
cmp dword [esp + 0x148], 0
jne 0x4771b3
mov byte [esp + 0x38c], 0
jmp 0x4778c4
xor eax, eax
mov dword [esp + 0x16c], 0
push 0xffffffffffffffff
push eax
mov word [esp + 0x164], ax
lea ecx, [esp + 0x164]
lea eax, [edi + 4]
mov dword [esp + 0x178], 0
push eax
mov dword [esp + 0x17c], 7
mov dword [esp + 0x178], 0
call fcn.00409040
mov byte [esp + 0x38c], 2
mov edx, 0x6f35bc
lea ecx, [esp + 0x15c]
call fcn.0041cd00
mov edx, 0x6f35bc
lea ecx, [esp + 0x15c]
call fcn.0041cd70
mov eax, dword [esp + 0x16c]
lea ecx, [esp + 0x130]
cmp eax, dword [esp + 0x130]
lea edx, [esp + 0x134]
mov dword [esp + 0x134], eax
cmovae edx, ecx
cmp dword [esp + 0x170], 8
lea ecx, [esp + 0x15c]
cmovae ecx, dword [esp + 0x15c]
mov eax, dword [edx]
test eax, eax
je 0x477880
push eax
lea edx, [esp + 0x178]
call fcn.0041ca60
add esp, 4
test eax, eax
je 0x477880
push 1
push ecx
lea eax, [esp + 0x13c]
mov dword [esp + 0x13c], 0x22
push eax
lea ecx, [esp + 0x168]
call fcn.004091a0
mov esi, eax
cmp esi, 0xffffffff
je 0x477438
push esi
push 0
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x168]
call fcn.00408dc0
mov byte [esp + 0x38c], 3
mov edx, 0x6eb9c8
lea ecx, [esp + 0xe4]
call fcn.0041cd00
mov edx, 0x6eb9c8
lea ecx, [esp + 0xe4]
call fcn.0041cd70
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x168]
call fcn.00408dc0
mov byte [esp + 0x38c], 4
lea edx, [esp + 0xe4]
push eax
lea ecx, [esp + 0x88]
call fcn.0048fb60
add esp, 4
mov esi, eax
mov byte [esp + 0x38c], 5
lea eax, [esp + 0x15c]
cmp eax, esi
je 0x477384
cmp dword [esp + 0x170], 8
jb 0x477357
push dword [esp + 0x15c]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x170], 7
push esi
lea ecx, [esp + 0x160]
mov dword [esp + 0x170], 0
mov word [esp + 0x160], ax
call fcn.00408e30
mov byte [esp + 0x38c], 4
cmp dword [esp + 0x98], 8
jb 0x4773a5
push dword [esp + 0x84]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], 0
mov word [esp + 0x84], ax
mov byte [esp + 0x38c], 3
cmp dword [esp + 0x68], 8
jb 0x4773e0
push dword [esp + 0x54]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov byte [esp + 0x38c], 2
cmp dword [esp + 0xf8], 8
jb 0x477418
push dword [esp + 0xe4]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0xf8], 7
mov dword [esp + 0xf4], 0
mov word [esp + 0xe4], ax
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], 0
mov byte [esp + 0x118], 0
mov byte [esp + 0x38c], 6
lea eax, [esp + 0x15c]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.004269d0
mov esi, eax
mov byte [esp + 0x394], 7
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004269d0
add esp, 0x10
mov byte [esp + 0x38c], 8
cmp dword [eax + 0x14], 8
jb 0x4774b5
mov eax, dword [eax]
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x118]
push ecx
mov ecx, eax
call fcn.00427f60
add esp, 4
mov byte [esp + 0x38c], 7
cmp dword [esp + 0x50], 8
jb 0x4774e5
push dword [esp + 0x3c]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
mov byte [esp + 0x38c], 6
cmp dword [esp + 0x80], 8
jb 0x47751a
push dword [esp + 0x6c]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
cmp dword [esp + 0x128], eax
je 0x477841
xorps xmm0, xmm0
mov dword [esp + 0xdc], eax
movq qword [esp + 0xd4], xmm0
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov byte [esp + 0x38c], 9
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x11c]
push 0x20
push eax
call fcn.0042a710
mov esi, dword [esp + 0xe0]
add esp, 0xc
mov eax, dword [esp + 0xd8]
cmp esi, eax
je 0x4777f5
xorps xmm0, xmm0
movdqu xmmword [esp + 0xfc], xmm0
movq qword [esp + 0x10c], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [esp + 0x104], eax
and eax, 0xffffff00
mov dword [esp + 0x104], eax
and eax, 0xfffffeff
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], 0
mov byte [esp + 0x38c], 0xf
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x28]
call fcn.004a2570
mov byte [esp + 0x38c], 0x10
lea ecx, [esp + 0xfc]
push 0x6f35a8
push str.name
call fcn.004a3c80
mov byte [esp + 0x38c], 0x11
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.004a2950
mov byte [esp + 0x38c], 0xf
lea ecx, [esp + 0x24]
call fcn.004a27b0
push esi
lea ecx, [esp + 0x10]
call fcn.004a2570
mov byte [esp + 0x38c], 0x12
lea ecx, [esp + 0xfc]
push 0x6f35b0
push str.file
call fcn.004a3c80
mov byte [esp + 0x38c], 0x13
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call fcn.004a2950
mov byte [esp + 0x38c], 0xf
lea ecx, [esp + 0xc]
call fcn.004a27b0
mov eax, dword [edi + 0x1c]
cdq
mov byte [esp + 0xbc], 1
and dword [esp + 0xbc], 0xfffffeff
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], edx
mov byte [esp + 0x38c], 0x14
lea ecx, [esp + 0xfc]
push 0x6f35d6
push str.status
call fcn.004a3c80
mov byte [esp + 0x38c], 0x15
lea ecx, [esp + 0xb4]
push ecx
mov ecx, eax
call fcn.004a2950
mov byte [esp + 0x38c], 0xf
lea ecx, [esp + 0xb4]
call fcn.004a27b0
mov byte [esp + 0xa4], 1
and dword [esp + 0xa4], 0xfffffeff
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov eax, dword [edi + 0x20]
cdq
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
mov byte [esp + 0x38c], 0x16
lea ecx, [esp + 0xfc]
push 0x6f35dd
push str.start
call fcn.004a3c80
mov byte [esp + 0x38c], 0x17
lea ecx, [esp + 0x9c]
push ecx
mov ecx, eax
call fcn.004a2950
mov byte [esp + 0x38c], 0xf
lea ecx, [esp + 0x9c]
call fcn.004a27b0
mov ecx, dword [esp + 0xd0]
lea eax, [esp + 0xfc]
push eax
call fcn.004a40f0
mov byte [esp + 0x38c], 9
lea ecx, [esp + 0xfc]
call fcn.004a27b0
mov eax, dword [esp + 0xd8]
mov byte [esp + 0x38c], 6
test esi, esi
je 0x477841
push dword [esp + 0xd0]
lea ecx, [esp + 0xe7]
push ecx
push eax
push esi
call fcn.0042ace0
push esi
call fcn.005472b4
add esp, 0x14
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov byte [esp + 0x38c], 2
cmp dword [esp + 0x12c], 0x10
jb 0x477862
push dword [esp + 0x118]
call fcn.005472b4
add esp, 4
mov byte [esp + 0x118], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0xf
mov byte [esp + 0x38c], 1
cmp dword [esp + 0x170], 8
jb 0x4778a1
push dword [esp + 0x15c]
call fcn.005472b4
add esp, 4
xor eax, eax
mov dword [esp + 0x170], 7
mov dword [esp + 0x16c], eax
mov word [esp + 0x15c], ax
mov byte [esp + 0x38c], al
cmp dword [esp + 0x14c], 0x10
jb 0x4778dd
push dword [esp + 0x138]
call fcn.005472b4
add esp, 4
add edi, 0x38
mov byte [esp + 0x138], 0
mov dword [esp + 0x148], 0
mov dword [esp + 0x14c], 0xf
lea eax, [edi - 0x14]
cmp eax, dword [esp + 0x154]
jne 0x477140
mov eax, dword [esp + 0x154]
mov esi, dword [esp + 0x150]
mov dword [esp + 0x38c], 0xffffffff
test esi, esi
je 0x477966
push dword [esp + 0xd0]
mov edx, eax
push ecx
mov ecx, esi
call fcn.0044b890
push esi
call fcn.005472b4
add esp, 0xc
mov dword [esp + 0x150], 0
mov dword [esp + 0x154], 0
mov dword [esp + 0x158], 0
mov ecx, dword [esp + 0x384]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.005472b9
add esp, 0x384
ret 4