Function at 0x43ff20
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525fcd
mov eax, dword fs:[0]
push eax
mov eax, 0x266c
call fcn.004a76b0
mov eax, dword [0x576644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2678], esi
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004ca680
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
add esp, 0xc
push str.halowp.exe
push dword [esi]
push eax
call edi
push 0x800
lea eax, [ebp - 0xe70]
push 0
push eax
call fcn.004ca680
add esp, 0xc
lea eax, [ebp - 0xe70]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1670]
push 0
push eax
call fcn.004ca680
lea eax, [ebp - 0x640]
push eax
call fcn.00418a20
push 0x53a224
push eax
lea eax, [ebp - 0x658]
mov dword [ebp - 4], 0
push eax
call fcn.0043fae0
add esp, 0x1c
cmp dword [eax + 0x14], 8
jb 0x43fff2
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xe70]
push eax
lea eax, [ebp - 0x1670]
push eax
call edi
mov edx, dword [ebp - 0x644]
cmp edx, 8
jb 0x440043
mov ecx, dword [ebp - 0x658]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x440039
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4403ec
push edx
push ecx
call fcn.004a7285
add esp, 8
mov edx, dword [ebp - 0x62c]
xor eax, eax
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 7
mov word [ebp - 0x658], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4400a7
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44009d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4403f1
push edx
push ecx
call fcn.004a7285
add esp, 8
lea eax, [ebp - 0x640]
push eax
call fcn.00418a20
add esp, 4
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 1
jb 0x4400c5
mov eax, dword [eax]
push 0
push 1
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x1670]
push ecx
push 0
lea ecx, [ebp - 0x420]
push ecx
push eax
mov ecx, esi
call fcn.004404b0
mov edx, dword [ebp - 0x62c]
test eax, eax
mov dword [ebp - 4], 0xffffffff
sete bl
cmp edx, 8
jb 0x440134
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44012a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4403f6
push edx
push ecx
call fcn.004a7285
add esp, 8
test bl, bl
je 0x44013f
xor eax, eax
jmp 0x4403d0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004ca680
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x640]
push eax
call fcn.00418a20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x44017f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x640]
call fcn.0043fe70
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4401b8
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x1e70]
push 0
push eax
call fcn.004ca680
lea eax, [ebp - 0x658]
push eax
call fcn.00418a20
push 0x53a224
push eax
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 2
push eax
call fcn.0043fae0
add esp, 0x1c
cmp dword [eax + 0x14], 8
jb 0x4401fb
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1e70]
push eax
call edi
lea ecx, [ebp - 0x640]
call fcn.0043fe70
lea ecx, [ebp - 0x658]
mov dword [ebp - 4], 0xffffffff
call fcn.0043fe70
lea eax, [ebp - 0x640]
push eax
call fcn.00418a20
add esp, 4
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 3
jb 0x440247
mov eax, dword [eax]
push 0
push 1
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x1e70]
push ecx
push 0
lea ecx, [ebp - 0x420]
push ecx
push eax
mov ecx, esi
call fcn.004404b0
lea ecx, [ebp - 0x640]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.0043fe70
test esi, esi
je 0x440138
push 0x800
lea eax, [ebp - 0x2670]
push 0
push eax
call fcn.004ca680
add esp, 0xc
call fcn.0040d510
mov ecx, eax
test ecx, ecx
je 0x4403fb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2674], eax
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 4
push eax
call fcn.00418a20
add esp, 4
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 5
jb 0x4402db
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2674]
push 0x53a230
push eax
call fcn.00413080
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x640]
call fcn.0043fe70
push dword [ebp - 0x2674]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x2670]
push eax
call edi
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004ca680
mov ebx, dword [ebp - 0x2678]
lea eax, [ebp - 0x628]
add esp, 0xc
push 0x53a1cc
push dword [ebx]
push eax
call edi
lea eax, [ebp - 0x670]
push eax
call fcn.00418a20
add esp, 4
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 6
jb 0x44035c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2674]
push 0x53a244
push eax
call fcn.00413080
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x670]
call fcn.0043fe70
mov esi, dword [ebp - 0x2674]
lea eax, [ebp - 0x628]
push 1
push 0
push eax
lea eax, [ebp - 0x2670]
mov ecx, ebx
push eax
push 0
lea eax, [ebp - 0x628]
push eax
push esi
call fcn.004404b0
neg eax
mov dword [ebp - 4], 0xffffffff
sbb edi, edi
add esi, 0xfffffff0
neg edi
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4403ce
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7695
mov esp, ebp
pop ebp
ret
call fcn.004d5d48
call fcn.004d5d48
call fcn.004d5d48
push 0x80004005
call fcn.00409d40
int3