Function at 0x42a9e0
Capabilities:
Check if file exists
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 0x4d521c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x260
mov eax, dword [0x56b06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x260], eax
xor eax, eax
mov dword [ebp - 0x260], 0x573ac0
mov dword [0x573ad0], 0
mov dword [0x573ad4], 7
mov word [0x573ac0], ax
mov dword [ebp - 4], eax
mov dword [0x573ae8], eax
mov dword [0x573aec], 7
mov word [0x573ad8], ax
mov dword [0x573b00], eax
mov dword [0x573b04], 7
mov word [0x573af0], ax
mov dword [0x573b18], eax
mov dword [0x573b1c], 7
mov word [0x573b08], ax
mov dword [0x573b20], eax
mov dword [0x573b24], eax
mov dword [0x573b28], eax
mov word [0x573b2c], ax
mov dword [0x573b40], eax
mov dword [0x573b44], 7
mov word [0x573b30], ax
mov dword [0x573b58], eax
mov dword [0x573b5c], 7
mov word [0x573b48], ax
mov dword [0x573b70], eax
mov dword [0x573b74], 7
mov word [0x573b60], ax
mov dword [0x573b88], eax
mov dword [0x573b8c], 7
mov word [0x573b78], ax
push 0x104
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 7
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x42ac39
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ab27
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
mov ecx, 0x573ac0
call fcn.00412c70
mov esi, dword [0x573ad4]
mov edx, 0x573ac0
mov eax, dword [0x573ad0]
cmp esi, 8
cmovae edx, dword [0x573ac0]
test eax, eax
je 0x42ac39
dec eax
or edi, 0xffffffff
cmp eax, edi
mov ecx, edi
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x42ab91
nop
cmp ecx, edx
je 0x42ac39
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x42ab80
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x42ac39
cmp esi, 8
mov eax, 0x573ac0
lea esi, [ecx + 1]
mov ecx, 0x573ad8
cmovae eax, dword [0x573ac0]
push esi
push eax
call fcn.00412c70
xor eax, eax
mov dword [ebp - 0x248], 0
mov word [ebp - 0x258], ax
mov eax, dword [0x573ad0]
mov dword [ebp - 0x244], 7
cmp eax, esi
jb 0x42af86
sub eax, esi
lea ecx, [ebp - 0x258]
cmp eax, 0xffffffff
cmovb edi, eax
cmp dword [0x573ad4], 8
mov eax, 0x573ac0
cmovae eax, dword [0x573ac0]
push edi
lea eax, [eax + esi*2]
push eax
call fcn.00412c70
mov ecx, 0x573af0
call fcn.0040a8a0
movups xmm0, xmmword [ebp - 0x258]
movups xmmword [0x573af0], xmm0
movq xmm0, qword [ebp - 0x248]
movq qword [0x573b00], xmm0
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0x1c
push str.APPDATA
push eax
mov edx, 0x4e07c0
lea ecx, [ebp - 0x240]
call fcn.00428540
add esp, 8
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x230]
test ecx, ecx
je 0x42add3
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 0x240]
mov esi, dword [ebp - 0x240]
cmp edx, 8
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x42acd1
cmp ecx, edx
jae 0x42acb6
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x240]
cmovae eax, esi
mov dword [eax + ecx*2], 0x5c
jmp 0x42acd1
push 0x5c
mov byte [ebp - 0x25c], 0
push dword [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x240]
call fcn.00421100
push 6
push 0x5415d0
lea ecx, [ebp - 0x240]
call fcn.00413720
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x22c]
cmp ecx, edx
jae 0x42ad15
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
mov dword [eax + ecx*2], 0x5c
jmp 0x42ad30
push 0x5c
mov byte [ebp - 0x25c], 0
push dword [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x240]
call fcn.00421100
cmp dword [0x56c0a8], 8
lea ecx, [ebp - 0x240]
push dword [0x56c0a4]
mov eax, 0x56c094
cmovae eax, dword [0x56c094]
push eax
call fcn.00413720
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x240]
push eax
call esi
test eax, eax
jne 0x42ad93
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
push eax
call esi
test eax, eax
je 0x42add3
cmp dword [ebp - 0x22c], 8
lea eax, [ebp - 0x240]
push dword [ebp - 0x230]
cmovae eax, dword [ebp - 0x240]
mov ecx, 0x573b08
push eax
call fcn.00412c70
mov ecx, dword [0x573b18]
test ecx, ecx
jne 0x42aece
push ecx
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], ecx
push eax
push 0x104
lea ecx, [ebp - 0x26c]
call fcn.0041d6b0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x268]
mov esi, dword [ebp - 0x26c]
sub eax, esi
sar eax, 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, esi
mov dword [ebp - 0x248], 0
xor eax, eax
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ae40
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x258]
call fcn.00412c70
mov byte [ebp - 4], 8
test esi, esi
je 0x42ae97
mov ecx, dword [ebp - 0x264]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x42ae8d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42af8b
push ecx
push esi
call fcn.004835cc
add esp, 8
mov ecx, 0x573b08
call fcn.0040a8a0
cmp dword [ebp - 0x248], 0
movups xmm0, xmmword [ebp - 0x258]
movups xmmword [0x573b08], xmm0
movq xmm0, qword [ebp - 0x248]
movq qword [0x573b18], xmm0
je 0x42af27
mov ecx, dword [0x573b18]
mov edx, dword [0x573b1c]
mov eax, 0x573b08
mov esi, dword [0x573b08]
cmp edx, 8
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x42af27
cmp ecx, edx
jae 0x42af0d
lea eax, [ecx + 1]
cmp edx, 8
mov dword [0x573b18], eax
mov eax, 0x573b08
cmovae eax, esi
mov dword [eax + ecx*2], 0x5c
jmp 0x42af27
push 0x5c
mov byte [ebp - 0x25c], 0
push dword [ebp - 0x25c]
push ecx
mov ecx, 0x573b08
call fcn.00421100
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x42af63
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42af59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42af90
push edx
push ecx
call fcn.004835cc
add esp, 8
mov eax, 0x573ac0
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.0048358b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040d610
call fcn.004b1db8
call fcn.004b1db8
int3