Function at 0x4dee90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3061
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x6244f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x150]
mov edi, eax
mov dword [ebp - 0x224], edi
test edi, edi
je 0x4def6d
cmp dword [edi + 8], 0
je 0x4def6d
mov edx, dword [esi + 0x40]
mov ecx, dword [esi + 0xb8]
lea eax, [edx + 1]
cmp eax, dword [ecx + 0x2c]
jge 0x4def4b
mov ebx, edi
lea edi, [edx + 1]
test edi, edi
js 0x4def09
cmp edi, dword [ecx + 0x2c]
jge 0x4def09
mov eax, dword [ecx + 0x28]
mov edi, dword [eax + edi*4]
jmp 0x4def0b
xor edi, edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x154]
cmp dword [edi + 0x44], eax
jl 0x4def49
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x154]
add eax, dword [ebx + 4]
cmp dword [edi + 0x44], eax
jg 0x4def49
mov ecx, dword [esi + 0xb8]
push edi
mov eax, dword [ecx]
call dword [eax + 0x50]
mov edx, dword [esi + 0x40]
mov ecx, dword [esi + 0xb8]
lea eax, [edx + 1]
cmp eax, dword [ecx + 0x2c]
jl 0x4deef5
mov edi, ebx
mov ecx, dword [esi + 0xc0]
call fcn.004a29c0
test eax, eax
je 0x4def8b
mov eax, dword [esi]
mov dword [esi + 0x90], 0
push 1
mov ecx, esi
call dword [eax + 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056e41f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x4defa6
mov eax, dword [esi]
mov dword [esi + 0x90], 0
push 0
jmp 0x4def68
or dword [esi + 0x90], 1
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x21c], cx
inc eax
mov dword [ebp - 0x23c], eax
lea ecx, [eax + eax]
cmp ecx, 0x20a
jae 0x4df338
xor eax, eax
mov word [ebp + ecx - 0x21c], ax
mov ecx, 0x5dbf60
mov eax, dword [edi + 0x1c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4df02f
test dx, dx
je 0x4df023
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4df02f
add eax, 4
add ecx, 4
test dx, dx
jne 0x4df001
mov dword [ebp - 0x234], 0
jmp 0x4df03a
sbb eax, eax
or eax, 1
mov dword [ebp - 0x234], eax
lea ecx, [ebp - 0x220]
call fcn.00404c17
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], 0
call fcn.00404c17
xor ebx, ebx
mov byte [ebp - 4], 1
or ecx, 0xffffffff
cmp dword [edi + 4], ebx
jle 0x4df2e9
lea esp, [esp]
mov eax, dword [edi]
lea ecx, [ebp - 0x21c]
push 1
push dword [ebp - 0x23c]
push ecx
push ebx
lea ecx, [ebp - 0x220]
push ecx
mov ecx, edi
call dword [eax + 0xc]
test eax, eax
je 0x4df2e6
cmp dword [ebp - 0x234], 0
jne 0x4df1a7
lea ecx, [edi - 0x20]
push ebx
call fcn.00514cd0
mov edi, eax
mov dword [ebp - 0x238], edi
test edi, edi
je 0x4df1b1
mov ecx, dword [edi + 0x2c]
sub ecx, 0x10
push ecx
call fcn.00405d05
add esp, 4
mov ecx, dword [eax + 4]
mov dword [ebp - 0x228], ecx
or ecx, 0xffffffff
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4df0e9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [ebp - 0x228], 0
je 0x4df1b1
mov eax, dword [edi + 0x2c]
sub eax, 0x10
push eax
call fcn.00405d05
add esp, 4
lea edx, [eax + 0x10]
mov dword [ebp - 0x248], edx
mov ecx, dword [ebp - 0x220]
lea edi, [edx - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
mov dword [ebp - 0x22c], ecx
cmp edi, ecx
je 0x4df18c
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x228], eax
jl 0x4df17d
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x4df17d
push edi
call fcn.00405d05
mov edx, dword [ebp - 0x228]
add esp, 4
mov dword [ebp - 0x230], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4df172
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x230]
add eax, 0x10
mov dword [ebp - 0x220], eax
jmp 0x4df18c
push dword [edx - 0xc]
lea ecx, [ebp - 0x220]
push edx
call fcn.004054b5
mov byte [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4df1b1
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4df1b1
mov dword [ebp - 0x238], 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x154]
mov ecx, dword [esi + 0x40]
add eax, ebx
push 1
inc ecx
add ecx, ebx
push ecx
mov ecx, dword [esi + 0xb8]
push 0x5bbe20
push eax
push 1
call fcn.004868d0
mov edi, eax
lea eax, [ebx + 1]
push eax
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004de020
add esp, 0xc
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0048ce40
mov edx, dword [ebp - 0x240]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4df22a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 8
mov ecx, edi
call fcn.0048d1e0
test ebx, ebx
jne 0x4df241
cmp dword [esi + 0x40], ebx
je 0x4df241
lea ecx, [ebx + 1]
jmp 0x4df243
xor ecx, ecx
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x5c]
mov ecx, dword [ebp - 0x224]
mov eax, dword [ecx + 8]
mov edx, dword [eax + ebx*4]
test edx, edx
jne 0x4df25f
xor eax, eax
jmp 0x4df283
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x230], ecx
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4df270
sub eax, dword [ebp - 0x230]
sar eax, 1
push eax
push edx
lea ecx, [edi + 0xb0]
call fcn.004054b5
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x4df2ae
mov eax, dword [eax + 0x24]
cmp dword [edi + 0x48], eax
je 0x4df2ae
push 0
mov ecx, edi
mov dword [edi + 0x48], eax
call fcn.0048cc90
mov ecx, esi
call fcn.0048bfb0
test al, al
jns 0x4df2d1
test ebx, ebx
jne 0x4df2d1
mov ecx, edi
call fcn.0048bfb0
or eax, 0x80
mov ecx, edi
push eax
call fcn.0048d1e0
mov edi, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x22c]
cmp ebx, dword [edi + 4]
jl 0x4df070
or ecx, 0xffffffff
mov edx, dword [ebp - 0x244]
mov eax, ecx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4df30d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov edx, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4def6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4def6d
call fcn.0056eb28
int3