Function at 0x4098e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42249b
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x434014]
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 eax, dword [ebp + 8]
lea ecx, [ebp - 0x814]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x838], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x834], ebx
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x830], 0
call fcn.00406dd0
mov dword [ebp - 4], 0
call fcn.00405c50
mov ecx, eax
test ecx, ecx
jne 0x40995b
push 0x80004005
call fcn.00402520
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x83c], eax
add eax, 0x10
mov dword [ebp - 0x840], eax
mov byte [ebp - 4], 1
call fcn.00405c50
mov ecx, eax
test ecx, ecx
jne 0x409988
push 0x80004005
call fcn.00402520
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x824], eax
mov byte [ebp - 4], 2
call fcn.00405c50
mov ecx, eax
test ecx, ecx
jne 0x4099af
push 0x80004005
call fcn.00402520
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x818], edi
lea eax, [ebp - 0x82c]
mov byte [ebp - 4], 3
push ebx
push eax
call fcn.004095a0
add esp, 8
mov esi, dword [ebp - 0x814]
mov byte [ebp - 4], 4
cmp dword [esi - 0xc], 2
jle 0x409a3e
push 2
lea eax, [ebp - 0x820]
push eax
lea ecx, [ebp - 0x814]
call fcn.00408cb0
push 0x424304
push eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x830], 1
call fcn.004091f0
mov esi, dword [ebp - 0x814]
add esp, 8
test al, al
je 0x409a32
cmp dword [esi - 0xc], 1
jge 0x409a2b
push 0x80070057
call fcn.00402520
cmp word [esi + 2], 0x3a
jne 0x409a3e
mov dword [ebp - 0x81c], 0
jmp 0x409a48
mov dword [ebp - 0x81c], 1
or ebx, 0xffffffff
mov dword [ebp - 4], 4
test byte [ebp - 0x830], 1
je 0x409a7e
mov edx, dword [ebp - 0x820]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409a78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x814]
cmp dword [ebp - 0x81c], 0
je 0x409d20
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004126a0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409aa6
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x409ae4
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x818]
call fcn.00408da0
push 0x424307
lea ecx, [ebp - 0x82c]
call fcn.00408fe0
jmp 0x409b6d
push 1
lea eax, [ebp - 0x820]
push esi
push eax
call fcn.00409400
add esp, 0xc
push eax
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 6
call fcn.00408da0
mov edx, dword [ebp - 0x820]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409b27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x814]
lea eax, [ebp - 0x820]
push eax
call fcn.004095a0
add esp, 8
push eax
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 7
call fcn.00408da0
mov edx, dword [ebp - 0x820]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409b6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x828]
lea ecx, [ebp - 0x81c]
call fcn.00406dd0
mov eax, dword [ebp - 0x81c]
mov byte [ebp - 4], 8
cmp dword [eax - 0xc], 0
jne 0x409bd2
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409bb0
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x81c]
call fcn.00407180
mov edi, dword [ebp - 0x818]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x409c2a
dec eax
lea ecx, [ebp - 0x818]
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.00408cb0
push eax
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 9
call fcn.00408da0
mov edx, dword [ebp - 0x828]
mov eax, ebx
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409c24
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x818]
push edi
push dword [ebp - 0x81c]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c47
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x824]
call fcn.00407180
push dword [ebp - 0x824]
lea eax, [ebp - 0x828]
push eax
call fcn.00409820
add esp, 8
push eax
lea ecx, [ebp - 0x824]
mov byte [ebp - 4], 0xa
call fcn.00408da0
mov edx, dword [ebp - 0x828]
mov eax, ebx
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409caf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x820]
push eax
call fcn.00409290
add esp, 0xc
push eax
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 0xb
call fcn.00408da0
mov edx, dword [ebp - 0x820]
mov eax, ebx
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409cfd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x81c]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409d4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x409d4f
mov edx, dword [ebp - 0x834]
test edx, edx
jne 0x409d2e
xor ecx, ecx
jmp 0x409d42
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409d33
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x814]
call fcn.00407180
mov eax, dword [ebp - 0x814]
add eax, 0xfffffff0
push eax
call fcn.00406270
mov esi, dword [ebp - 0x838]
add eax, 0x10
mov edx, dword [ebp - 0x82c]
add esp, 4
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov dword [esi], eax
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409d8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x409da8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x824]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409dc9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x83c]
mov eax, ebx
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409de7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x409e09
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0040a23e
mov esp, ebp
pop ebp
ret