Function at 0x461070
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ba529
push eax
mov dword fs:[0], esp
sub esp, 0x2e0
push esi
push edi
mov edi, dword [esp + 0x2fc]
cmp edi, 2
je 0x4610a2
cmp edi, 3
jne 0x461515
mov eax, dword [0x533e00]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2f8]
mov dword [esp + 0x2f0], 0
cmp eax, 7
ja case.0x4610c6.2
jmp dword [eax*4 + 0x461530]
mov al, byte [esp + 0x300]
test al, al
je 0x4610e9
cmp edi, 3
mov eax, 0x570938
je 0x461147
mov eax, 0x570934
jmp 0x461147
cmp edi, 3
mov eax, 0x570940
je 0x461147
mov eax, 0x57093c
jmp 0x461147
mov al, byte [esp + 0x300]
test al, al
je 0x461116
cmp edi, 3
mov eax, 0x5705e8
je 0x461147
mov eax, 0x5705e4
jmp 0x461147
cmp edi, 3
mov eax, 0x5705f0
je 0x461147
mov eax, 0x5705ec
jmp 0x461147
cmp edi, 3
mov eax, 0x570528
je 0x461147
mov eax, 0x570524
jmp 0x461147
cmp edi, 3
mov eax, 0x56fb00
je 0x461147
mov eax, 0x56fafc
push eax
lea ecx, [esp + 0xc]
call fcn.004a50c2
mov eax, dword [0x533e00]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x268]
mov byte [esp + 0x2f0], 2
push ecx
push 0x64
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x268]
lea ecx, [esp + 0x10]
push edx
call fcn.004a5112
push 0
push 0x4fec9c
lea ecx, [esp + 0x10]
call fcn.0049e281
mov esi, eax
cmp esi, 0xffffffff
je 0x46123e
lea eax, [esi + 1]
lea ecx, [esp + 8]
push eax
push 0x4fec9c
call fcn.0049e281
cmp eax, 0xffffffff
je 0x4611d0
mov esi, eax
inc eax
push eax
push 0x4fec9c
lea ecx, [esp + 0x10]
call fcn.0049e281
cmp eax, 0xffffffff
jne 0x4611b9
lea ecx, [esp + 0xc]
push esi
push ecx
lea ecx, [esp + 0x10]
call fcn.0049e1d9
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2f4], 3
call fcn.004a50c2
lea ecx, [esp + 0xc]
mov byte [esp + 0x2f0], 2
call fcn.004a4f89
mov edx, dword [esp + 8]
lea ecx, [esp + 8]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0049e15d
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2f4], 4
call fcn.004a50c2
lea ecx, [esp + 0xc]
mov byte [esp + 0x2f0], 2
call fcn.004a4f89
push 0
xor ecx, ecx
push 0
cmp edi, 2
push 6
push 0
sete cl
push 0
push ecx
lea ecx, [esp + 0x30]
call fcn.0041d770
push 0x104
lea ecx, [esp + 0xc]
mov byte [esp + 0x2f4], 5
call fcn.004a53b9
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], eax
mov dword [esp + 0xa0], edx
mov dword [esp + 0x80], 0x4fe7cc
call fcn.0041d7e0
cmp eax, 1
je 0x46130f
lea ecx, [esp + 0xc4]
mov byte [esp + 0x2f0], 6
call fcn.004a4f89
lea ecx, [esp + 0x18]
mov byte [esp + 0x2f0], 2
call fcn.004a0db1
lea ecx, [esp + 0x14]
mov byte [esp + 0x2f0], 1
call fcn.004a4f89
lea ecx, [esp + 0x10]
mov byte [esp + 0x2f0], 0
call fcn.004a4f89
lea ecx, [esp + 8]
mov dword [esp + 0x2f0], 0xffffffff
call fcn.004a4f89
xor al, al
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x2ec
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
call fcn.0049e8db
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2f4], 7
call fcn.004a50c2
lea ecx, [esp + 0xc]
mov byte [esp + 0x2f0], 5
call fcn.004a4f89
cmp edi, 3
jne case.default.0x46138d
push ecx
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.004a4cfe
lea eax, [esp + 0x10]
push eax
call fcn.00420f90
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2f4], 8
call fcn.004a50c2
lea ecx, [esp + 0xc]
mov byte [esp + 0x2f0], 5
call fcn.004a4f89
mov ecx, dword [esp + 0x2f8]
jmp dword [ecx*4 + 0x461550]
mov al, byte [esp + 0x300]
test al, al
je 0x4613bc
cmp edi, 3
jne 0x4613b0
lea edx, [esp + 8]
mov ecx, 0x570938
push edx
jmp 0x4613d7
lea eax, [esp + 8]
mov ecx, 0x570934
push eax
jmp 0x4613d7
cmp edi, 3
jne 0x4613cd
lea ecx, [esp + 8]
push ecx
mov ecx, 0x570940
jmp 0x4613d7
lea edx, [esp + 8]
mov ecx, 0x57093c
push edx
call fcn.004a50c2
mov eax, dword [0x5795a8]
mov ecx, dword [eax + 0xa8]
call fcn.0043d480
jmp 0x4614b0
mov al, byte [esp + 0x300]
test al, al
je 0x461419
cmp edi, 3
jne 0x46140d
lea ecx, [esp + 8]
push ecx
mov ecx, 0x5705e8
jmp 0x461434
lea edx, [esp + 8]
mov ecx, 0x5705e4
push edx
jmp 0x461434
cmp edi, 3
jne 0x46142a
lea eax, [esp + 8]
mov ecx, 0x5705f0
push eax
jmp 0x461434
lea ecx, [esp + 8]
push ecx
mov ecx, 0x5705ec
call fcn.004a50c2
mov edx, dword [0x5795a8]
mov ecx, dword [edx + 0xac]
call fcn.0044fd20
jmp 0x4614b0
mov byte [esp + 0x2f0], 0xa
jmp 0x4614c2
mov byte [esp + 0x2f0], 9
lea ecx, [esp + 0xc4]
call fcn.004a4f89
lea ecx, [esp + 0x18]
mov byte [esp + 0x2f0], 2
call fcn.004a0db1
lea ecx, [esp + 0x14]
mov byte [esp + 0x2f0], 1
call fcn.004a4f89
lea ecx, [esp + 0x10]
mov byte [esp + 0x2f0], 0
call fcn.004a4f89
lea ecx, [esp + 8]
mov dword [esp + 0x2f0], 0xffffffff
call fcn.004a4f89
mov ecx, dword [esp + 0x2e8]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x2ec
ret