Function at 0x402c50
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5a16
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1058
call fcn.004ba3d0
mov eax, dword [0x50e008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1064], edi
mov eax, dword [0x510ce4]
mov dword [ebp - 0x1064], edi
test al, 1
jne 0x402cdd
or eax, 1
mov dword [0x510cdc], 0
mov dword [0x510ce4], eax
xor eax, eax
push 0x4daef0
mov dword [0x510ce0], 7
mov word [0x510ccc], ax
call fcn.004a12d0
add esp, 4
cmp dword [0x510cdc], 0
jne 0x402efc
push 0x1000
lea eax, [ebp - 0x1018]
push 0
push eax
call fcn.004a2d80
add esp, 0xc
lea eax, [ebp - 0x1018]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x1018], 0
je 0x402efc
push 0xb
xor eax, eax
mov dword [ebp - 0x1038], 0
push 0x4e9048
lea ecx, [ebp - 0x1048]
mov dword [ebp - 0x1034], 7
mov word [ebp - 0x1048], ax
call fcn.00402870
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1018]
xor eax, eax
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x1030], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402d80
sub ecx, edx
lea eax, [ebp - 0x1018]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1030]
call fcn.00402870
lea eax, [ebp - 0x1048]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x1060]
push eax
call fcn.0040a200
mov esi, eax
add esp, 0xc
cmp esi, 0x510ccc
je 0x402e01
mov ecx, 0x510ccc
call fcn.00402290
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [0x510ccc], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x510cdc], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x104c]
cmp edx, 8
jb 0x402e41
mov ecx, dword [ebp - 0x1060]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402e37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f28
push edx
push ecx
call fcn.004a12e5
add esp, 8
xor eax, eax
mov dword [ebp - 0x1050], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x101c]
mov dword [ebp - 0x104c], 7
mov word [ebp - 0x1060], ax
cmp edx, 8
jb 0x402ea1
mov ecx, dword [ebp - 0x1030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402e97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f2d
push edx
push ecx
call fcn.004a12e5
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1034]
cmp edx, 8
jb 0x402ee4
mov ecx, dword [ebp - 0x1048]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402eda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f32
push edx
push ecx
call fcn.004a12e5
add esp, 8
mov ecx, 0x510ccc
call fcn.00407d90
test al, al
jne 0x402efc
mov ecx, 0x510ccc
call fcn.00408430
push 0x510ccc
mov ecx, edi
call fcn.00402770
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a100a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004a4ce9
call fcn.004a4ce9
call fcn.004a4ce9
int3