Function at 0x4049b0
Capabilities:
Check if file exists
Get common file path
Get program files directory

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 0x69221b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x268
mov eax, dword [0x75d580]
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, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
mov ecx, edi
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x26c], 0
push 0
movups xmmword [edi], xmm0
push 0x735258
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00402060
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x26c], 1
call fcn.0053fb70
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x220]
add esp, 0xc
push 0
push 0x2a
push eax
push 0
call esi
test eax, eax
jne 0x404ad5
push eax
push 0x26
lea eax, [ebp - 0x220]
push eax
push 0
call esi
test eax, eax
jne 0x404ad5
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x270]
push eax
push 0x64
push 0
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
test eax, eax
jne 0x404ac2
mov eax, dword [ebp - 0x270]
push eax
mov esi, dword [eax + 0xc]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp esi, 5
jle 0x404ac2
push 0x17
push str.C:Program_Files__x86__
mov ecx, edi
call fcn.00408050
jmp 0x404bda
push 0x11
push str.C:Program_Files_
mov ecx, edi
call fcn.00408050
jmp 0x404bda
xorps xmm0, xmm0
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x23c], 0
movups xmmword [ebp - 0x250], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404b00
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.00402060
lea eax, [ebp - 0x250]
cmp edi, eax
je 0x404b9a
mov ecx, dword [edi + 0x14]
cmp ecx, 7
jbe 0x404b65
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x404b5b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404dd3
mov eax, edx
push ecx
push eax
call fcn.0048a4f6
add esp, 8
movups xmm0, xmmword [ebp - 0x250]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov ecx, 7
movups xmmword [edi], xmm0
mov word [ebp - 0x250], ax
movq xmm0, qword [ebp - 0x240]
movq qword [edi + 0x10], xmm0
jmp 0x404ba0
mov ecx, dword [ebp - 0x23c]
cmp ecx, 7
jbe 0x404bda
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404bd0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404dd3
push ecx
push edx
call fcn.0048a4f6
add esp, 8
mov edx, edi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.0040af80
cmp dword [ebp - 0x228], 0
mov esi, 0x5c
mov dword [ebp - 0x26c], 3
jbe 0x404c27
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x404c10
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
cmp si, word [ecx + eax*2 - 2]
je 0x404c27
push 0x5c
lea ecx, [ebp - 0x238]
call fcn.00410980
lea eax, [ebp - 0x238]
cmp edi, eax
je 0x404cad
mov ecx, dword [edi + 0x14]
cmp ecx, 7
jbe 0x404c6a
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x404c60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404dd8
mov eax, edx
push ecx
push eax
call fcn.0048a4f6
add esp, 8
movups xmm0, xmmword [ebp - 0x238]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
xor ecx, ecx
movups xmmword [edi], xmm0
mov word [ebp - 0x238], cx
movq xmm0, qword [ebp - 0x228]
mov dword [ebp - 0x228], eax
mov eax, 7
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x224], eax
jmp 0x404cb3
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x26c], 1
mov byte [ebp - 4], 0
cmp eax, 7
jbe 0x404cfb
mov edx, dword [ebp - 0x238]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404cf1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404dd8
push ecx
push edx
call fcn.0048a4f6
add esp, 8
push 0xa
push str.AKPlatform
mov ecx, edi
call fcn.004021f0
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x404d13
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404db1
mov edx, edi
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x268]
call fcn.0040af80
cmp dword [ebp - 0x258], 0
mov dword [ebp - 0x26c], 5
jbe 0x404d6a
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x404d53
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
cmp si, word [ecx + eax*2 - 2]
je 0x404d6a
push 0x5c
lea ecx, [ebp - 0x268]
call fcn.00410980
lea ecx, [ebp - 0x268]
call fcn.0040b890
mov ecx, dword [ebp - 0x254]
cmp ecx, 7
jbe 0x404db1
mov edx, dword [ebp - 0x268]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404da7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404ddd
push ecx
push edx
call fcn.0048a4f6
add esp, 8
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.0048a267
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.00543627
call fcn.00543627
call fcn.00543627
int3