Function at 0x4ec450
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ae8c
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x60b4e0]
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 edi, ecx
mov eax, dword [edi]
call dword [eax + 0x150]
mov esi, eax
mov dword [ebp - 0x228], esi
test esi, esi
je 0x4ec539
cmp dword [esi + 8], 0
je 0x4ec539
mov edx, dword [edi + 0x40]
mov ecx, dword [edi + 0xb8]
lea eax, [edx + 1]
cmp eax, dword [ecx + 0x2c]
jge 0x4ec517
lea ebx, [edx + 1]
test ebx, ebx
js 0x4ec4c7
cmp ebx, dword [ecx + 0x2c]
jge 0x4ec4c7
mov eax, dword [ecx + 0x28]
mov ebx, dword [eax + ebx*4]
jmp 0x4ec4c9
xor ebx, ebx
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [ebx + 0x44]
call dword [eax + 0x154]
cmp esi, eax
jl 0x4ec511
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [ebx + 0x44]
call dword [eax + 0x154]
mov ecx, dword [ebp - 0x228]
add eax, dword [ecx + 4]
cmp esi, eax
jg 0x4ec511
mov ecx, dword [edi + 0xb8]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x50]
mov edx, dword [edi + 0x40]
mov ecx, dword [edi + 0xb8]
lea eax, [edx + 1]
cmp eax, dword [ecx + 0x2c]
jl 0x4ec4b3
mov esi, dword [ebp - 0x228]
mov ecx, dword [edi + 0xc0]
call fcn.004b0ec0
test eax, eax
je 0x4ec557
mov eax, dword [edi]
mov dword [edi + 0x90], 0
push 1
mov ecx, edi
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.0055a658
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x4ec572
mov eax, dword [edi]
mov dword [edi + 0x90], 0
push 0
jmp 0x4ec534
or dword [edi + 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 - 0x234], eax
lea ecx, [eax + eax]
cmp ecx, 0x20a
jae 0x4ec8db
xor eax, eax
mov word [ebp + ecx - 0x21c], ax
mov ecx, 0x5c4110
mov eax, dword [esi + 0x1c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ec5fe
test dx, dx
je 0x4ec5f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ec5fe
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ec5d0
mov dword [ebp - 0x230], 0
jmp 0x4ec609
sbb eax, eax
or eax, 1
mov dword [ebp - 0x230], eax
lea ecx, [ebp - 0x220]
call fcn.00404a52
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], 0
call fcn.00404a52
xor ebx, ebx
mov byte [ebp - 4], 1
or ecx, 0xffffffff
cmp dword [esi + 4], ebx
jle 0x4ec88c
jmp 0x4ec640
mov eax, dword [esi]
lea ecx, [ebp - 0x21c]
push 1
push dword [ebp - 0x234]
push ecx
push ebx
lea ecx, [ebp - 0x220]
push ecx
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
je 0x4ec889
cmp dword [ebp - 0x230], 0
jne 0x4ec752
lea ecx, [esi - 0x20]
push ebx
call fcn.0051b1f0
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x4ec75a
mov ecx, dword [eax + 0x2c]
sub ecx, 0x10
push ecx
call fcn.00405aab
mov esi, dword [eax + 4]
lea ecx, [ebp - 0x224]
add eax, 0x10
add esp, 4
mov dword [ebp - 0x224], eax
call fcn.00404ad1
test esi, esi
je 0x4ec75a
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x238]
push eax
call fcn.004a09f0
mov ecx, dword [eax]
mov esi, dword [ebp - 0x220]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x4ec741
cmp dword [esi + 0xc], 0
jl 0x4ec732
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4ec732
push edx
call fcn.00405aab
add esp, 4
mov dword [ebp - 0x224], eax
or ecx, 0xffffffff
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ec718
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x224]
add eax, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x220], eax
call fcn.00404ad1
jmp 0x4ec75a
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x220]
call fcn.004052ca
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.00404ad1
jmp 0x4ec75a
xor ecx, ecx
mov dword [ebp - 0x22c], ecx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x154]
mov ecx, dword [edi + 0x40]
add eax, ebx
push 1
inc ecx
add ecx, ebx
push ecx
mov ecx, dword [edi + 0xb8]
push 0x5a13b8
push eax
push 1
call fcn.004950c0
mov esi, eax
lea eax, [ebx + 1]
push eax
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.004eb5d0
add esp, 0xc
push dword [eax]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0049b860
mov edx, dword [ebp - 0x23c]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ec7d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 8
mov ecx, esi
call fcn.0049bb70
test ebx, ebx
jne 0x4ec7ea
cmp dword [edi + 0x40], ebx
je 0x4ec7ea
lea ecx, [ebx + 1]
jmp 0x4ec7ec
xor ecx, ecx
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x5c]
mov ecx, dword [ebp - 0x228]
mov eax, dword [ecx + 8]
mov edx, dword [eax + ebx*4]
test edx, edx
jne 0x4ec808
xor eax, eax
jmp 0x4ec826
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x224], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ec813
sub eax, dword [ebp - 0x224]
sar eax, 1
push eax
push edx
lea ecx, [esi + 0xb0]
call fcn.004052ca
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x4ec851
mov eax, dword [eax + 0x24]
cmp dword [esi + 0x48], eax
je 0x4ec851
push 0
mov ecx, esi
mov dword [esi + 0x48], eax
call fcn.0049b6b0
mov ecx, edi
call fcn.0049a8d0
test al, al
jns 0x4ec874
test ebx, ebx
jne 0x4ec874
mov ecx, esi
call fcn.0049a8d0
or eax, 0x80
mov ecx, esi
push eax
call fcn.0049bb70
mov esi, dword [ebp - 0x228]
mov ebx, dword [ebp - 0x240]
cmp ebx, dword [esi + 4]
jl 0x4ec640
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 0x4ec8b0
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 0x4ec539
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4ec539
call fcn.0055b463
int3