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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101575c6
mov eax, dword fs:[0]
push eax
sub esp, 0xc6c
mov eax, dword [0x101ba0ec]
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 ebx, ecx
push 0x208
xor edi, edi
lea eax, [ebp - 0xc40]
push edi
push eax
call fcn.1012bd00
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x208
push edi
push eax
call fcn.1012bd00
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x208
push edi
push eax
call fcn.1012bd00
add esp, 0xc
lea eax, [ebp - 0xa38]
push 0x208
push edi
push eax
call fcn.1012bd00
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push edi
push eax
call fcn.1012bd00
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push edi
push eax
call fcn.1012bd00
add esp, 0xc
lea eax, [ebp - 0xc40]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xc40]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x422], ax
test ax, ax
jne 0x1003f8d3
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.1012acb4
add esp, 8
test eax, eax
jne 0x1003f975
mov edx, str.WanNengWBIME.users
lea ecx, [ebp - 0xc58]
call fcn.1005a0b0
mov edi, eax
lea esi, [ebx + 0x24]
cmp esi, edi
je 0x1003f953
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x1003f92c
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10042120
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1003f944
mov eax, dword [esi]
jmp 0x1003f946
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.100419b0
mov eax, dword [ebp - 0xc44]
cmp eax, 8
jb 0x1003fbb8
inc eax
lea ecx, [ebp - 0xc58]
push eax
push dword [ebp - 0xc58]
jmp 0x1003fbb3
xor ecx, ecx
mov word [eax], cx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x832], ax
test ax, ax
jne 0x1003f980
lea ecx, [ebp - 0x830]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1003f9a1
mov eax, dword [str.Local]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ecx], eax
mov eax, dword [0x10184214]
mov dword [ecx + 4], eax
mov eax, dword [0x10184218]
mov dword [ecx + 8], eax
mov ax, word [0x1018421c]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x830]
push eax
call esi
test eax, eax
mov ecx, 1
mov eax, edi
cmovne eax, ecx
xor ecx, ecx
mov dword [ebp - 0xc74], eax
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x62a], ax
test ax, ax
jne 0x1003f9f1
lea ecx, [ebp - 0x628]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1003fa12
mov eax, dword [str.LocalLow]
mov dword [ecx], eax
mov eax, dword [0x10184224]
mov dword [ecx + 4], eax
mov eax, dword [0x10184228]
mov dword [ecx + 8], eax
mov eax, dword [0x1018422c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10184230]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x628]
push eax
call esi
test eax, eax
mov ecx, 1
mov eax, edi
cmovne eax, ecx
xor ecx, ecx
mov dword [ebp - 0xc78], eax
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0xa3a], ax
test ax, ax
jne 0x1003fa62
lea ecx, [ebp - 0xa38]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1003fa83
mov eax, dword [str.Roaming]
mov dword [ecx], eax
mov eax, dword [0x10184238]
mov dword [ecx + 4], eax
mov eax, dword [0x1018423c]
mov dword [ecx + 8], eax
mov eax, dword [0x10184240]
mov dword [ecx + 0xc], eax
mov ax, word [0x10184244]
mov word [ecx + 0x10], ax
lea eax, [ebp - 0xa38]
push eax
call esi
test eax, eax
mov eax, 1
cmovne edi, eax
mov eax, dword [ebp - 0xc74]
test eax, eax
je 0x1003fb81
mov eax, dword [ebp - 0xc78]
test eax, eax
je 0x1003fb81
test edi, edi
je 0x1003fb81
call fcn.1010ff62
test eax, eax
je 0x1003fb81
push str.WanNengWBIME.users
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push 0x10184248
push eax
call fcn.10041b40
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x1003fb38
lea eax, [ebp - 0x218]
push eax
call fcn.10110097
add esp, 4
cmp word [ebp - 0x218], 0
jne 0x1003fb56
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebx + 0x24]
call fcn.10041f80
jmp 0x1003fbb8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003fb60
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x24]
call fcn.10041f80
jmp 0x1003fbb8
mov edx, str.WanNengWBIME.users
lea ecx, [ebp - 0xc70]
call fcn.1005a0b0
push eax
lea ecx, [ebx + 0x24]
call fcn.10041550
mov eax, dword [ebp - 0xc5c]
cmp eax, 8
jb 0x1003fbb8
inc eax
lea ecx, [ebp - 0xc70]
push eax
push dword [ebp - 0xc70]
call fcn.10042120
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.1010a832
mov esp, ebp
pop ebp
ret