Function at 0x405050
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 0x429387
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x4b8
mov eax, dword [0x436040]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x405295
push 0x12
xorps xmm0, xmm0
mov dword [ebp - 0x488], eax
push 0x431cd8
lea ecx, [ebp - 0x498]
mov dword [ebp - 0x484], eax
movups xmmword [ebp - 0x498], xmm0
call fcn.00407390
lea esi, [ebp - 0x228]
mov dword [ebp - 4], 0
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4050f0
sub ecx, edx
mov dword [ebp - 0x470], 0
sar ecx, 1
xorps xmm0, xmm0
push ecx
push esi
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x46c], 0
movups xmmword [ebp - 0x480], xmm0
call fcn.00407390
lea eax, [ebp - 0x498]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x480]
lea ecx, [ebp - 0x468]
call fcn.00402fc0
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x46c]
cmp ecx, 7
jbe 0x40518d
mov edx, dword [ebp - 0x480]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405183
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054e0
push ecx
push edx
call fcn.00412bd8
add esp, 8
xor eax, eax
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 7
mov word [ebp - 0x480], ax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x484]
cmp ecx, 7
jbe 0x4051ee
mov edx, dword [ebp - 0x498]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4051e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4054e0
push ecx
push edx
call fcn.00412bd8
add esp, 8
xor eax, eax
mov byte [ebp - 4], 5
lea edx, [ebp - 0x438]
mov dword [ebp - 0x488], 0
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x484], 7
mov word [ebp - 0x498], ax
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], 0x436ae0
call fcn.00403b50
cmp dword [ebp - 0x438], 0
jne 0x4054e5
push 0x104
lea eax, [ebp - 0x430]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4052b3
mov ecx, dword [ebp - 0x454]
cmp ecx, 7
jbe 0x405295
mov edx, dword [ebp - 0x468]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40528b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405509
push ecx
push edx
call fcn.00412bd8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041274a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea esi, [ebp - 0x430]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4052c0
sub ecx, edx
mov dword [ebp - 0x440], 0
sar ecx, 1
xorps xmm0, xmm0
push ecx
push esi
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x43c], 0
movups xmmword [ebp - 0x450], xmm0
call fcn.00407390
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4b0]
push 0x16
xorps xmm0, xmm0
mov dword [ebp - 0x4a0], 0
push 0x431d00
movups xmmword [ebp - 0x4b0], xmm0
mov dword [ebp - 0x49c], 0
call fcn.00407390
lea eax, [ebp - 0x4b0]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x468]
lea ecx, [ebp - 0x4cc]
call fcn.00402fc0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 8
mov ecx, esi
cmp dword [esi + 0x14], 7
jbe 0x40535d
mov ecx, dword [esi]
cmp dword [ebp - 0x43c], 7
lea eax, [ebp - 0x450]
push 2
cmova eax, dword [ebp - 0x450]
push ecx
push eax
call fcn.00411df7
test edx, edx
jne 0x4054f7
mov ecx, dword [ebp - 0x4b8]
cmp ecx, 7
jbe 0x4053c2
mov edx, dword [ebp - 0x4cc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4053b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405504
push ecx
push edx
call fcn.00412bd8
add esp, 8
mov ecx, dword [ebp - 0x49c]
xor eax, eax
mov dword [ebp - 0x4bc], 0
mov dword [ebp - 0x4b8], 7
mov word [ebp - 0x4cc], ax
cmp ecx, 7
jbe 0x40541f
mov edx, dword [ebp - 0x4b0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405415
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405504
push ecx
push edx
call fcn.00412bd8
add esp, 8
mov ecx, dword [ebp - 0x43c]
cmp ecx, 7
jbe 0x40549d
mov edx, dword [ebp - 0x450]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405455
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405509
push ecx
push edx
call fcn.00412bd8
add esp, 8
jmp 0x40549d
mov ecx, dword [ebp - 0x454]
cmp ecx, 7
jbe 0x405295
mov edx, dword [ebp - 0x468]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40528b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40528b
call fcn.004176b9
call fcn.004176b9
lea eax, [ebp - 0x468]
push eax
lea edx, [ebp - 0x438]
call fcn.00403ad0
push esi
lea eax, [ebp - 0x450]
push eax
call fcn.00403a40
call fcn.004176b9
call fcn.004176b9
int3