Function at 0x40e300
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541d87
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x594ca8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ebx, [ebp - 0x420]
call fcn.0040d1e0
push ecx
mov dword [ebp - 4], 0
mov eax, ebx
mov dword [ebp - 0x41c], esp
mov ecx, esp
push eax
call fcn.00404900
call fcn.00402330
push 0x3ff
lea ecx, [ebp - 0x40f]
push 0
push ecx
mov byte [ebp - 0x410], 0
call fcn.00518f10
add esp, 0x10
push 1
push 0x1c
lea edx, [ebp - 0x410]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x410]
push eax
mov ecx, eax
push str._sm1905
push ecx
call fcn.00515f66
add esp, 0xc
call fcn.00417597
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e3b6
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x418], eax
lea ecx, [ebp - 0x410]
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x40e3f8
mov edx, ecx
movzx esi, dx
push esi
call fcn.00418209
test eax, eax
je 0x40e40a
push esi
push eax
lea ecx, [ebp - 0x418]
call fcn.00403eb0
jmp 0x40e40a
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x418]
call fcn.00404440
push ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x418]
mov dword [ebp - 0x41c], esp
mov ecx, esp
push edx
call fcn.00404900
call fcn.00402330
add esp, 4
call fcn.00417597
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e445
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x414], eax
mov bl, 3
push 0x23
lea esi, [ebp - 0x414]
mov byte [ebp - 4], bl
call fcn.0040a5c0
push str.m1905
mov ecx, esi
push ecx
lea edx, [ebp - 0x41c]
push edx
call fcn.00404260
add esp, 0x10
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00404790
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x41c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e4b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
lea edx, [ebp - 0x414]
mov dword [ebp - 0x424], esp
mov ecx, esp
push edx
call fcn.00404900
call fcn.00402330
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e4f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e51a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x420]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e543
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005155a4
mov esp, ebp
pop ebp
ret