Function at 0x479100
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, 0x49a800
call fcn.00482ea0
xor edi, edi
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0xc4c], eax
push dword [ebp - 0xc4c]
call fcn.00489668
pop ecx
mov dword [ebp - 0xc48], eax
xor edx, edx
mov dl, byte [ebx]
mov dword [ebp - 0xc54], edx
push dword [ebp - 0xc54]
call fcn.00489668
pop ecx
mov dword [ebp - 0xc50], eax
lea ecx, [ebp - 0x1084]
push ecx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
xor eax, eax
mov al, byte [ebp - 0x1084]
mov dword [ebp - 0xc58], eax
push dword [ebp - 0xc58]
call fcn.00489668
pop ecx
xor edx, edx
mov dl, byte [ebp - 0x1084]
cmp edx, 0x5c
je 0x4791d8
xor ecx, ecx
mov cl, byte [esi]
cmp ecx, 0x5c
je 0x4791d8
xor edx, edx
mov dl, byte [ebx]
cmp edx, 0x5c
je 0x4791d8
xor ecx, ecx
mov cl, byte [esi + 1]
cmp ecx, 0x3a
je 0x4791b5
mov dword [ebp - 0xc48], eax
xor edx, edx
mov dl, byte [ebx + 1]
cmp edx, 0x3a
je 0x4791c5
mov dword [ebp - 0xc50], eax
mov eax, dword [ebp - 0xc48]
cmp eax, dword [ebp - 0xc50]
je 0x4791d8
mov edi, 1
lea eax, [ebp - 0xc84]
push eax
push ebx
call fcn.00484328
add esp, 8
test eax, eax
sete al
and eax, 1
test eax, eax
je 0x4792da
mov word [ebp - 0xc34], 8
lea eax, [ebp - 0xc20]
call fcn.00408a64
inc dword [ebp - 0xc28]
mov word [ebp - 0xc34], 0x14
push 0
push 1
lea eax, [ebp - 0xc20]
xor ecx, ecx
mov edx, ebx
call fcn.00408b50
test al, al
je 0x479241
lea eax, [ebp - 0xc20]
call fcn.00408db4
test al, al
jne 0x479270
mov eax, 0xf
mov edx, 2
push eax
lea eax, [ebp - 0xc20]
dec dword [ebp - 0xc28]
call fcn.00408b08
pop eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x47942a
cmp word [ebp - 0xc7e], 1
jle 0x479281
mov edi, 1
jmp 0x4792bb
push ebx
call fcn.00484330
pop ecx
test eax, eax
je 0x4792bb
mov eax, 0xf
mov edx, 2
push eax
lea eax, [ebp - 0xc20]
dec dword [ebp - 0xc28]
call fcn.00408b08
pop eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x47942a
dec dword [ebp - 0xc28]
lea eax, [ebp - 0xc20]
mov edx, 2
call fcn.00408b08
mov word [ebp - 0xc34], 0
test edi, edi
jne 0x47931c
push ebx
push esi
call fcn.00485858
add esp, 8
test eax, eax
je 0x47931c
mov edi, 1
call fcn.0048c224
cmp dword [eax], 0x16
je 0x47931c
call fcn.0048c224
cmp dword [eax], 0x11
je 0x47931c
mov eax, 0xf
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x47942a
test edi, edi
je 0x47941b
push 0x49a7cc
push esi
call fcn.004849c0
add esp, 8
mov dword [ebp - 0xc5c], eax
test eax, eax
jne 0x479377
push esi
mov eax, 0x1f5
call fcn.00410804
push eax
push dword [0x4fa850]
call fcn.0044142c
add esp, 0xc
mov eax, 0x49e7d8
call fcn.004277c0
mov eax, 0xa
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x47942a
push 0x49a7cf
push ebx
call fcn.004849c0
add esp, 8
mov dword [ebp - 0xc60], eax
test eax, eax
jne 0x4793af
push dword [ebp - 0xc5c]
call fcn.00484510
pop ecx
mov eax, 0xf
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x47942a
or ecx, 0xffffffff
mov edx, dword [ebp - 0xc60]
mov eax, dword [ebp - 0xc5c]
call fcn.004794ec
push dword [ebp - 0xc5c]
mov edi, eax
call fcn.00484510
pop ecx
push dword [ebp - 0xc60]
call fcn.00484510
pop ecx
test eax, eax
jne 0x4793e5
test edi, edi
je 0x479414
push ebx
call fcn.00484330
pop ecx
test edi, edi
je 0x479400
cmp edi, 0xa
jne 0x4793fc
mov eax, 0xe
jmp 0x479405
mov eax, edi
jmp 0x479405
mov eax, 0xe
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
jmp 0x47942a
push esi
call fcn.00484330
pop ecx
xor eax, eax
mov edx, dword [ebp - 0xc44]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret