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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
je 0x475a88
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
or eax, eax
jne 0x475aa1
call fcn.0047c41c
push eax
call fcn.00479b70
add esp, 4
mov dword [ebp - 0x10c], eax
jmp 0x475ec6
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
push eax
call fcn.0046a7c0
add esp, 4
or eax, eax
je 0x475aed
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x3a
jne 0x475aed
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
push eax
call fcn.0046aab8
add esp, 4
mov byte [ebp - 0x104], al
mov byte [ebp - 0x103], 0x3a
add dword [ebp + 8], 2
jmp 0x475cea
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
mov ecx, dword [ebp + 8]
movsx ecx, byte [ecx + 1]
cmp eax, ecx
jne 0x475b40
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x475b20
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x2f
jne 0x475b40
mov eax, dword [ebp + 8]
mov al, byte [eax]
mov byte [ebp - 0x104], al
mov eax, dword [ebp + 8]
mov al, byte [eax + 1]
mov byte [ebp - 0x103], al
add dword [ebp + 8], 2
jmp 0x475cea
call fcn.0047c41c
mov byte [ebp - 0x104], al
mov byte [ebp - 0x103], 0x3a
movsx eax, byte [ebp - 0x104]
cmp eax, 0x5c
je 0x475b72
movsx eax, byte [ebp - 0x104]
cmp eax, 0x2f
jne 0x475cea
lea eax, [ebp - 0x104]
push eax
push 0x100
call sub.KERNEL32.dll_GetCurrentDirectoryA
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0x100
ja 0x475cea
movsx eax, byte [ebp - 0x104]
or eax, eax
je 0x475cea
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x2e
jne 0x475c4b
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x2e
jne 0x475c32
push dword [ebp + 8]
call sub.KERNEL32.dll_SetCurrentDirectoryA
or eax, eax
je 0x475c2d
lea eax, [ebp - 0x214]
push eax
push 0x100
call sub.KERNEL32.dll_GetCurrentDirectoryA
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0x100
ja 0x475c2d
movsx eax, byte [ebp - 0x214]
or eax, eax
je 0x475c2d
lea eax, [ebp - 0x214]
push eax
call fcn.00472b40
add esp, 4
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
jmp 0x475eec
jmp 0x475c46
mov eax, dword [ebp + 8]
inc eax
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0047e480
add esp, 8
jmp 0x475cca
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x475c69
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x2f
jne 0x475c80
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0047e480
add esp, 8
jmp 0x475cca
push dword [0x4a024c]
lea eax, [ebp - 0x104]
push eax
call fcn.0047e480
add esp, 8
lea eax, [ebp - 0x104]
push eax
call fcn.0047ee00
add esp, 4
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
mov byte [ebp + eax - 0x103], 0
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0047e480
add esp, 8
lea eax, [ebp - 0x104]
push eax
call fcn.00472b40
add esp, 4
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
jmp 0x475eec
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
push eax
push dword [0x4a024c]
call fcn.0046990c
add esp, 8
or eax, eax
jne 0x475d47
movsx eax, byte [ebp - 0x104]
cmp eax, 0x5c
jne 0x475d27
movsx eax, byte [ebp - 0x103]
cmp eax, 0x5c
je 0x475d47
movsx eax, byte [ebp - 0x104]
cmp eax, 0x2f
jne 0x475d5e
movsx eax, byte [ebp - 0x103]
cmp eax, 0x2f
jne 0x475d5e
push dword [ebp + 8]
lea eax, [ebp - 0x102]
push eax
call fcn.0047e484
add esp, 8
jmp 0x475ea2
movsx eax, byte [ebp - 0x104]
push eax
call fcn.00479b70
add esp, 4
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x475d8c
mov eax, dword [ebp - 0x10c]
jmp 0x475eec
push dword [ebp - 0x10c]
lea eax, [ebp - 0x104]
push eax
call fcn.0047e484
add esp, 8
push dword [ebp - 0x10c]
call fcn.00472a0c
add esp, 4
lea eax, [ebp - 0x104]
push eax
call fcn.0047ee00
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 3
jle 0x475e6c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
jmp 0x475ddf
inc dword [ebp - 0x110]
mov eax, dword [ebp - 0x110]
movsx eax, byte [eax]
or eax, eax
je 0x475e6c
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
or eax, eax
jne 0x475e0d
mov dword [ebp - 0x108], 0
jmp 0x475e48
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
push eax
call fcn.0046a8e0
add esp, 4
or eax, eax
jne 0x475e33
mov dword [ebp - 0x108], 1
jmp 0x475e48
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 1
sbb eax, eax
add eax, 2
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 1
jle 0x475e67
mov eax, dword [ebp - 0x108]
dec eax
add dword [ebp - 0x110], eax
jmp 0x475dd9
jmp 0x475dd9
mov eax, dword [ebp - 4]
lea eax, [ebp + eax - 0x104]
mov dword [ebp - 0x110], eax
mov eax, dword [0x4a024c]
mov al, byte [eax]
mov ecx, dword [ebp - 0x110]
mov byte [ecx], al
inc dword [ebp - 0x110]
push dword [ebp + 8]
push dword [ebp - 0x110]
call fcn.0047e484
add esp, 8
lea eax, [ebp - 0x104]
push eax
call fcn.0047a240
add esp, 4
lea eax, [ebp - 0x104]
push eax
call fcn.00472b40
add esp, 4
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x475ee1
push dword [ebp - 0x10c]
call fcn.00477684
add esp, 4
mov eax, dword [ebp - 0x10c]
jmp 0x475eec
pop edi
pop esi
pop ebx
leave
ret