Function at 0x4dfa10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21c8
call fcn.00523cc0
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2158], ecx
mov byte [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x4b], eax
mov dword [ebp - 0x47], eax
mov dword [ebp - 0x43], eax
mov dword [ebp - 0x3f], eax
mov dword [ebp - 0x3b], eax
mov word [ebp - 0x37], ax
mov byte [ebp - 0x35], al
mov byte [ebp - 0x34], 0
xor ecx, ecx
mov dword [ebp - 0x33], ecx
mov dword [ebp - 0x2f], ecx
mov dword [ebp - 0x2b], ecx
mov dword [ebp - 0x27], ecx
mov dword [ebp - 0x23], ecx
mov word [ebp - 0x1f], cx
mov byte [ebp - 0x1d], cl
mov byte [ebp - 0x1c], 0
xor edx, edx
mov dword [ebp - 0x1b], edx
mov dword [ebp - 0x17], edx
mov dword [ebp - 0x13], edx
mov dword [ebp - 0xf], edx
mov dword [ebp - 0xb], edx
mov word [ebp - 7], dx
mov byte [ebp - 5], dl
mov dword [ebp - 0x2174], 0x134
mov dword [ebp - 0x216c], 0
mov byte [ebp - 0x2154], 0
push 0x13ff
push 0
lea eax, [ebp - 0x2153]
push eax
call fcn.00527170
add esp, 0xc
mov byte [ebp - 0x354], 0
push 0xff
push 0
lea ecx, [ebp - 0x353]
push ecx
call fcn.00527170
add esp, 0xc
push 0x100
lea edx, [ebp - 0x354]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004e11e0
add esp, 0xc
mov byte [ebp - 0x554], 0
push 0xff
push 0
lea ecx, [ebp - 0x553]
push ecx
call fcn.00527170
add esp, 0xc
push 0x100
lea edx, [ebp - 0x554]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e11e0
add esp, 0xc
lea ecx, [ebp - 0x354]
push ecx
call fcn.004e12a0
add esp, 4
mov dword [ebp - 0x217c], eax
mov byte [ebp - 0x454], 0
push 0xff
push 0
lea edx, [ebp - 0x453]
push edx
call fcn.00527170
add esp, 0xc
mov dword [ebp - 0x21c4], 0x800
mov dword [ebp - 0x2160], 0
mov dword [ebp - 0x2170], 0x5000
jmp 0x4dfb7e
push 0
lea eax, [ebp - 0x454]
push eax
mov ecx, dword [ebp - 0x2158]
call fcn.004ddc70
cmp dword [ebp + 0x18], 0
je 0x4dfbab
lea ecx, [ebp - 0x454]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call fcn.004d9bf0
add esp, 8
mov eax, dword [ebp - 0x2158]
mov ecx, dword [eax + 0x90]
push ecx
lea edx, [ebp - 0x354]
push edx
mov ecx, dword [ebp - 0x2158]
call fcn.004e0810
mov eax, dword [ebp - 0x2158]
mov ecx, dword [eax + 0x90]
push ecx
lea edx, [ebp - 0x554]
push edx
mov ecx, dword [ebp - 0x2158]
call fcn.004e0810
mov eax, dword [ebp - 0x2158]
mov ecx, dword [eax + 0x90]
push ecx
lea edx, [ebp - 0x454]
push edx
mov ecx, dword [ebp - 0x2158]
call fcn.004e0810
mov eax, dword [ebp - 0x2158]
mov ecx, dword [eax + 0x90]
push ecx
lea edx, [ebp - 0x454]
push edx
lea eax, [ebp - 0x554]
push eax
lea ecx, [ebp - 0x354]
push ecx
push 0x57decc
call fcn.004d9ef0
add esp, 4
push eax
lea edx, [ebp - 0x2154]
push edx
call fcn.0041f000
add esp, 0x18
mov dword [ebp - 0x21bc], 0x84400100
push 0
mov eax, dword [ebp - 0x21bc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x2154]
push ecx
push 0x57df00
call fcn.004d9ef0
add esp, 4
push eax
mov edx, dword [ebp - 0x2158]
mov eax, dword [edx + 0x84]
push eax
mov ecx, dword [ebp - 0x2158]
mov edx, dword [ecx + 0x50]
call edx
mov dword [ebp - 0x216c], eax
cmp dword [ebp - 0x216c], 0
je 0x4dfec5
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x216c]
push eax
mov ecx, dword [ebp - 0x2158]
mov edx, dword [ecx + 0x54]
call edx
cmp eax, 1
jne 0x4dfea9
mov byte [ebp - 0xd54], 0
push 0x7ff
push 0
lea eax, [ebp - 0xd53]
push eax
call fcn.00527170
add esp, 0xc
mov dword [ebp - 0x21c8], 0
mov dword [ebp - 0x2168], 0
mov dword [ebp - 0x2178], 0
mov dword [ebp - 0x2164], 0
mov ecx, dword [ebp - 0x2170]
push ecx
call fcn.005238ab
add esp, 4
mov dword [ebp - 0x21b8], eax
mov edx, dword [ebp - 0x21b8]
mov dword [ebp - 0x2160], edx
cmp dword [ebp - 0x2160], 0
je 0x4dfea7
mov dword [ebp - 0x2164], 0
push 0
push 0
lea eax, [ebp - 0x2178]
push eax
mov ecx, dword [ebp - 0x216c]
push ecx
mov edx, dword [ebp - 0x2158]
mov eax, dword [edx + 0x58]
call eax
test eax, eax
jne 0x4dfd66
jmp 0x4dfe8e
push 0x57df0c
call fcn.004d9ef0
add esp, 4
cmp dword [ebp - 0x2178], 0x800
jbe 0x4dfd89
mov dword [ebp - 0x2178], 0x800
cmp dword [ebp - 0x2178], 0
jbe 0x4dfe81
lea ecx, [ebp - 0x2164]
push ecx
mov edx, dword [ebp - 0x2178]
push edx
lea eax, [ebp - 0xd54]
push eax
mov ecx, dword [ebp - 0x216c]
push ecx
mov edx, dword [ebp - 0x2158]
mov eax, dword [edx + 0x5c]
call eax
test eax, eax
je 0x4dfe81
mov ecx, dword [ebp - 0x2168]
add ecx, dword [ebp - 0x2164]
cmp ecx, dword [ebp - 0x2170]
jb 0x4dfe4c
mov edx, dword [ebp - 0x2170]
shl edx, 1
mov dword [ebp - 0x2170], edx
mov eax, dword [ebp - 0x2170]
push eax
call fcn.005238ab
add esp, 4
mov dword [ebp - 0x21c0], eax
mov ecx, dword [ebp - 0x21c0]
mov dword [ebp - 0x2198], ecx
mov edx, dword [ebp - 0x2168]
push edx
mov eax, dword [ebp - 0x2160]
push eax
mov ecx, dword [ebp - 0x2198]
push ecx
call fcn.004d9a50
add esp, 0xc
mov edx, dword [ebp - 0x2160]
mov dword [ebp - 0x219c], edx
mov eax, dword [ebp - 0x219c]
push eax
call fcn.005238b4
add esp, 4
mov ecx, dword [ebp - 0x2198]
mov dword [ebp - 0x2160], ecx
mov edx, dword [ebp - 0x2164]
push edx
lea eax, [ebp - 0xd54]
push eax
mov ecx, dword [ebp - 0x2160]
add ecx, dword [ebp - 0x2168]
push ecx
call fcn.004d9a50
add esp, 0xc
mov edx, dword [ebp - 0x2168]
add edx, dword [ebp - 0x2164]
mov dword [ebp - 0x2168], edx
cmp dword [ebp - 0x2164], 0
jne 0x4dfd36
mov eax, dword [ebp - 0x2160]
add eax, dword [ebp - 0x2168]
mov byte [eax], 0
mov dword [ebp - 0x2174], 0
jmp 0x4dfeb3
mov dword [ebp - 0x2174], 0xcd
mov ecx, dword [ebp - 0x216c]
push ecx
mov edx, dword [ebp - 0x2158]
mov eax, dword [edx + 0x4c]
call eax
push 0
mov ecx, dword [ebp - 0x2158]
call fcn.004dcdf0
cmp dword [ebp - 0x2174], 0
jne 0x4e02a6
cmp dword [ebp - 0x2160], 0
je 0x4e028f
mov dword [ebp - 0x2184], 0
mov dword [ebp - 0x2180], 0
mov dword [ebp - 0x218c], 0
mov dword [ebp - 0x2188], 0
mov dword [ebp - 0x2194], 0
mov ecx, dword [ebp - 0x2170]
push ecx
mov edx, dword [ebp - 0x2160]
push edx
mov ecx, dword [ebp - 0x2158]
call fcn.004e0730
push 0x57df20
call fcn.004d9ef0
add esp, 4
mov dword [ebp - 0x21a0], 0
lea eax, [ebp - 0x21a0]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2194]
push ecx
lea edx, [ebp - 0x2188]
push edx
lea eax, [ebp - 0x218c]
push eax
lea ecx, [ebp - 0x2180]
push ecx
lea edx, [ebp - 0x2184]
push edx
push 0x57df30
call fcn.004d9ef0
add esp, 4
push eax
mov eax, dword [ebp - 0x2160]
push eax
call fcn.00417870
add esp, 0x2c
mov ecx, dword [ebp - 0x2184]
xor ecx, dword [ebp - 0x2180]
xor ecx, dword [ebp - 0x218c]
xor ecx, dword [ebp - 0x2188]
xor ecx, 0xa7f24b
xor ecx, dword [ebp - 0x217c]
mov dword [ebp - 0x21a4], ecx
mov edx, dword [ebp - 0x21a4]
cmp edx, dword [ebp - 0x2194]
jne 0x4e0251
mov eax, dword [ebp - 0x2158]
mov ecx, dword [eax + 0x90]
add ecx, 5
xor ecx, dword [ebp - 0x2184]
mov edx, dword [ebp - 0x217c]
sub edx, 2
xor ecx, edx
mov dword [ebp - 0x2190], ecx
mov eax, dword [ebp - 0x2158]
mov ecx, dword [eax + 0x90]
add ecx, 3
xor ecx, dword [ebp - 0x2180]
mov edx, dword [ebp - 0x217c]
sub edx, 4
xor ecx, edx
xor ecx, dword [ebp - 0x2184]
mov dword [ebp - 0x21a8], ecx
mov eax, dword [ebp - 0x2158]
mov ecx, dword [eax + 0x90]
add ecx, 9
xor ecx, dword [ebp - 0x218c]
mov edx, dword [ebp - 0x217c]
sub edx, 6
xor ecx, edx
xor ecx, dword [ebp - 0x2180]
mov dword [ebp - 0x21ac], ecx
mov eax, dword [ebp - 0x2158]
mov ecx, dword [eax + 0x90]
add ecx, 0x16
xor ecx, dword [ebp - 0x2188]
mov edx, dword [ebp - 0x217c]
sub edx, 0xf
xor ecx, edx
mov eax, dword [ebp - 0x2184]
sub eax, 9
xor ecx, eax
mov edx, dword [ebp - 0x2180]
sub edx, 0xe
xor ecx, edx
mov dword [ebp - 0x21b0], ecx
mov byte [ebp - 0x2159], 0
mov eax, dword [ebp - 0x2190]
and eax, 0x40000000
je 0x4e0215
mov byte [ebp - 0x254], 0
push 0x103
push 0
lea ecx, [ebp - 0x253]
push ecx
call fcn.00527170
add esp, 0xc
mov byte [ebp - 0x150], 0
push 0x103
push 0
lea edx, [ebp - 0x14f]
push edx
call fcn.00527170
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [ebp + edx - 0x254]
test eax, eax
je 0x4e0215
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [ebp + edx - 0x4c]
test eax, eax
je 0x4e0169
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x254]
push edx
push 0x57df50
call fcn.004d9ef0
add esp, 4
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.0041f000
add esp, 0x10
push 0
lea ecx, [ebp - 0x150]
push ecx
call fcn.00535b29
add esp, 8
cmp eax, 0xffffffff
je 0x4e0169
mov byte [ebp - 0x2159], 1
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x34]
test ecx, ecx
je 0x4e01bf
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x254]
push eax
push 0x57df50
call fcn.004d9ef0
add esp, 4
push eax
lea ecx, [ebp - 0x150]
push ecx
call fcn.0041f000
add esp, 0x10
push 0
lea edx, [ebp - 0x150]
push edx
call fcn.00535b29
add esp, 8
cmp eax, 0xffffffff
je 0x4e01bf
mov byte [ebp - 0x2159], 1
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x1c]
test edx, edx
je 0x4e0215
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x254]
push ecx
push 0x57df50
call fcn.004d9ef0
add esp, 4
push eax
lea edx, [ebp - 0x150]
push edx
call fcn.0041f000
add esp, 0x10
push 0
lea eax, [ebp - 0x150]
push eax
call fcn.00535b29
add esp, 8
cmp eax, 0xffffffff
je 0x4e0215
mov byte [ebp - 0x2159], 1
movzx ecx, byte [ebp - 0x2159]
cmp ecx, 1
jne 0x4e0239
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x21a8]
mov dword [edx], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x21ac]
mov dword [ecx], edx
jmp 0x4e024f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2190]
mov dword [eax], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x21b0]
mov dword [edx], eax
jmp 0x4e0268
mov dword [ebp - 0x2174], 0x136
push 0x57df5c
call fcn.004d9ef0
add esp, 4
mov ecx, dword [ebp - 0x2160]
mov dword [ebp - 0x21b4], ecx
mov edx, dword [ebp - 0x21b4]
push edx
call fcn.005238b4
add esp, 4
mov dword [ebp - 0x2160], 0
jmp 0x4e02a6
mov dword [ebp - 0x2174], 0x137
push 0x57df6c
call fcn.004d9ef0
add esp, 4
jmp 0x4e02b8
mov eax, dword [ebp - 0x2174]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 0x14