Function at 0x47e2a0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcd79
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x4dcac0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x378], ecx
lea eax, [ebp - 0x334]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 1
push 0
mov ecx, dword [ebp - 0x378]
push ecx
push 0x4c6518
push 0x206
push 0
push 0x4c6548
push 1
lea ecx, [ebp - 0x1f4]
call fcn.00491ac3
mov dword [ebp - 4], 0
mov dword [ebp - 0x1fc], 0x58
call fcn.0044daf0
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x224]
movzx eax, byte [edx + 0xb4]
test eax, eax
jne 0x47e344
mov dword [ebp - 0x1fc], 0x4c
lea ecx, [ebp - 0x1f4]
call fcn.0049119d
mov ecx, dword [ebp - 0x1fc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x224]
add ecx, 0xb8
call fcn.0040e440
mov esi, eax
lea ecx, [ebp - 0x1f4]
call fcn.0049119d
mov dword [eax + 0x2c], esi
mov dword [ebp - 0x10], 0xc3500
lea ecx, [ebp - 0x1f4]
call fcn.0049119d
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00482070
add esp, 4
mov dword [ebp - 0x360], eax
mov ecx, dword [ebp - 0x360]
mov dword [ebp - 0x200], ecx
lea ecx, [ebp - 0x1f4]
call fcn.0049119d
mov edx, dword [ebp - 0x200]
mov dword [eax + 0x1c], edx
lea ecx, [ebp - 0x1f4]
call fcn.0049119d
mov eax, dword [eax + 0x1c]
mov byte [eax], 0
lea ecx, [ebp - 0x1f4]
call fcn.004922ab
cmp eax, 2
jne 0x47e407
lea ecx, [ebp - 0x334]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f4]
call fcn.004918cb
jmp 0x47e818
lea edx, [ebp - 0x334]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x208]
call fcn.0040e300
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.00483d89
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1f4]
call fcn.0044ed40
mov dword [ebp - 0x338], eax
mov byte [ebp - 0x225], 1
cmp dword [ebp - 0x338], 0
je 0x47e4b9
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x1f4]
call fcn.004927e7
mov byte [ebp - 4], 3
movzx edx, byte [ebp - 0x225]
test edx, edx
je 0x47e496
mov byte [ebp - 0x225], 0
lea eax, [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x208]
call fcn.0040e3e0
jmp 0x47e4a8
lea ecx, [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x220]
call fcn.0040e0e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x33c]
call fcn.0040e3c0
jmp 0x47e44a
lea ecx, [ebp - 0x208]
call fcn.0040d520
movzx edx, al
test edx, edx
jne 0x47e4dd
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040e0e0
push ecx
mov ecx, esp
mov dword [ebp - 0x364], esp
lea edx, [ebp - 0x208]
push edx
call fcn.0040e320
mov dword [ebp - 0x37c], eax
lea eax, [ebp - 0x368]
push eax
call fcn.004024c0
add esp, 8
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp - 0x380]
mov dword [ebp - 0x384], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x384]
push edx
mov ecx, dword [ebp - 0x224]
add ecx, 0xb8
call fcn.0040e3e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x368]
call fcn.0040e3c0
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 0x200]
mov dword [ebp - 0x36c], ecx
mov edx, dword [ebp - 0x36c]
push edx
call fcn.0048207b
add esp, 4
lea ecx, [ebp - 0x220]
call fcn.0044df20
mov dword [ebp - 0x204], eax
cmp dword [ebp - 0x204], 0
jge 0x47e5bb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.00484257
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x208]
call fcn.0040e3c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f4]
call fcn.004918cb
jmp 0x47e818
lea ecx, [ebp - 0x20c]
call fcn.0040e300
mov byte [ebp - 4], 5
mov dword [ebp - 0x1f8], 0
jmp 0x47e5e5
mov eax, dword [ebp - 0x1f8]
add eax, 1
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0x1f8]
cmp ecx, dword [ebp - 0x204]
jg 0x47e7a2
lea ecx, [ebp - 0x350]
call fcn.00482709
mov byte [ebp - 4], 6
push 0
push 0
mov edx, dword [ebp - 0x1f8]
push edx
lea ecx, [ebp - 0x220]
call fcn.0040e110
mov ecx, eax
call fcn.0040e440
push eax
lea ecx, [ebp - 0x350]
call fcn.00482cd6
test eax, eax
jne 0x47e644
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x350]
call fcn.0048288b
jmp 0x47e5d6
lea ecx, [ebp - 0x350]
call fcn.00482498
mov dword [ebp - 0x35c], eax
mov eax, dword [ebp - 0x35c]
lea ecx, [eax + eax + 0x42]
push ecx
call fcn.00482070
add esp, 4
mov dword [ebp - 0x370], eax
mov edx, dword [ebp - 0x370]
mov dword [ebp - 0x340], edx
mov eax, dword [ebp - 0x35c]
lea ecx, [eax + eax + 0x37]
push ecx
mov edx, dword [ebp - 0x340]
push edx
lea ecx, [ebp - 0x350]
call fcn.004822a1
mov dword [ebp - 0x354], eax
lea ecx, [ebp - 0x350]
call fcn.004825f4
mov eax, dword [ebp - 0x354]
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0
jle 0x47e773
mov ecx, dword [ebp - 0x340]
add ecx, dword [ebp - 0x358]
movsx edx, byte [ecx - 1]
cmp edx, 0xa
jne 0x47e6f9
mov eax, dword [ebp - 0x340]
add eax, dword [ebp - 0x358]
mov byte [eax], 0
mov ecx, dword [ebp - 0x340]
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0040d0a0
jmp 0x47e773
mov edx, dword [ebp - 0x340]
add edx, dword [ebp - 0x358]
movsx eax, byte [edx - 1]
cmp eax, 0xd
jne 0x47e742
mov ecx, dword [ebp - 0x340]
add ecx, dword [ebp - 0x358]
mov byte [ecx - 1], 0
mov edx, dword [ebp - 0x340]
push edx
lea ecx, [ebp - 0x20c]
call fcn.0040d0a0
push 0x4c654c
lea ecx, [ebp - 0x20c]
call fcn.0040d0a0
jmp 0x47e773
mov eax, dword [ebp - 0x340]
add eax, dword [ebp - 0x358]
mov byte [eax], 0
mov ecx, dword [ebp - 0x340]
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0040d0a0
push 0x4c6550
lea ecx, [ebp - 0x20c]
call fcn.0040d0a0
mov edx, dword [ebp - 0x340]
mov dword [ebp - 0x374], edx
mov eax, dword [ebp - 0x374]
push eax
call fcn.0048207b
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x350]
call fcn.0048288b
jmp 0x47e5d6
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x378]
call fcn.00490860
push 1
lea ecx, [ebp - 0x20c]
call fcn.0040e440
push eax
mov ecx, dword [ebp - 0x378]
call fcn.0047ebe0
push 0
push 0
mov ecx, dword [ebp - 0x378]
call fcn.00490860
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20c]
call fcn.0040e3c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.00484257
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x208]
call fcn.0040e3c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f4]
call fcn.004918cb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a47ba
mov esp, ebp
pop ebp
ret