Function at 0x40e290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541d37
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.0040d170
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.00518ea0
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.00515ef6
add esp, 0xc
call fcn.00417515
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e346
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 0x40e388
mov edx, ecx
movzx esi, dx
push esi
call fcn.004181ba
test eax, eax
je 0x40e39a
push esi
push eax
lea ecx, [ebp - 0x418]
call fcn.00403eb0
jmp 0x40e39a
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.00417515
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e3d5
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.0040a550
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 0x40e441
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 0x40e484
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 0x40e4aa
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 0x40e4d3
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.0051553d
mov esp, ebp
pop ebp
ret