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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101575d6
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.1012bcf0
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x208
push edi
push eax
call fcn.1012bcf0
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x208
push edi
push eax
call fcn.1012bcf0
add esp, 0xc
lea eax, [ebp - 0xa38]
push 0x208
push edi
push eax
call fcn.1012bcf0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push edi
push eax
call fcn.1012bcf0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push edi
push eax
call fcn.1012bcf0
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 0x1003f503
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.1012aca4
add esp, 8
test eax, eax
jne 0x1003f5a5
mov edx, str.WanNengWBIME
lea ecx, [ebp - 0xc58]
call fcn.1005a0b0
mov edi, eax
lea esi, [ebx + 0x3c]
cmp esi, edi
je 0x1003f583
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x1003f55c
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 0x1003f574
mov eax, dword [esi]
jmp 0x1003f576
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 0x1003f7e8
inc eax
lea ecx, [ebp - 0xc58]
push eax
push dword [ebp - 0xc58]
jmp 0x1003f7e3
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 0x1003f5b0
lea ecx, [ebp - 0x830]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1003f5d1
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 0x1003f621
lea ecx, [ebp - 0x628]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1003f642
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 0x1003f692
lea ecx, [ebp - 0xa38]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1003f6b3
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 0x1003f7b1
mov eax, dword [ebp - 0xc78]
test eax, eax
je 0x1003f7b1
test edi, edi
je 0x1003f7b1
call fcn.1010ffce
test eax, eax
je 0x1003f7b1
push str.WanNengWBIME
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 0x1003f768
lea eax, [ebp - 0x218]
push eax
call fcn.10110103
add esp, 4
cmp word [ebp - 0x218], 0
jne 0x1003f786
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebx + 0x3c]
call fcn.10041f80
jmp 0x1003f7e8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003f790
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x3c]
call fcn.10041f80
jmp 0x1003f7e8
mov edx, str.WanNengWBIME
lea ecx, [ebp - 0xc70]
call fcn.1005a0b0
push eax
lea ecx, [ebx + 0x3c]
call fcn.10041550
mov eax, dword [ebp - 0xc5c]
cmp eax, 8
jb 0x1003f7e8
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.1010a7f2
mov esp, ebp
pop ebp
ret