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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10156c86
mov eax, dword fs:[0]
push eax
sub esp, 0xc6c
mov eax, dword [0x101b90ec]
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.1012b3b0
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x208
push edi
push eax
call fcn.1012b3b0
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x208
push edi
push eax
call fcn.1012b3b0
add esp, 0xc
lea eax, [ebp - 0xa38]
push 0x208
push edi
push eax
call fcn.1012b3b0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push edi
push eax
call fcn.1012b3b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push edi
push eax
call fcn.1012b3b0
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 0x1003f4f3
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.1012a364
add esp, 8
test eax, eax
jne 0x1003f595
mov edx, str.WanNengWBIME
lea ecx, [ebp - 0xc58]
call fcn.10059ff0
mov edi, eax
lea esi, [ebx + 0x3c]
cmp esi, edi
je 0x1003f573
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x1003f54c
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10042110
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x1003f564
mov eax, dword [esi]
jmp 0x1003f566
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.100419a0
mov eax, dword [ebp - 0xc44]
cmp eax, 8
jb 0x1003f7d8
inc eax
lea ecx, [ebp - 0xc58]
push eax
push dword [ebp - 0xc58]
jmp 0x1003f7d3
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 0x1003f5a0
lea ecx, [ebp - 0x830]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1003f5c1
mov eax, dword [str.Local]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ecx], eax
mov eax, dword [0x10183214]
mov dword [ecx + 4], eax
mov eax, dword [0x10183218]
mov dword [ecx + 8], eax
mov ax, word [0x1018321c]
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 0x1003f611
lea ecx, [ebp - 0x628]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1003f632
mov eax, dword [str.LocalLow]
mov dword [ecx], eax
mov eax, dword [0x10183224]
mov dword [ecx + 4], eax
mov eax, dword [0x10183228]
mov dword [ecx + 8], eax
mov eax, dword [0x1018322c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10183230]
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 0x1003f682
lea ecx, [ebp - 0xa38]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1003f6a3
mov eax, dword [str.Roaming]
mov dword [ecx], eax
mov eax, dword [0x10183238]
mov dword [ecx + 4], eax
mov eax, dword [0x1018323c]
mov dword [ecx + 8], eax
mov eax, dword [0x10183240]
mov dword [ecx + 0xc], eax
mov ax, word [0x10183244]
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 0x1003f7a1
mov eax, dword [ebp - 0xc78]
test eax, eax
je 0x1003f7a1
test edi, edi
je 0x1003f7a1
call fcn.1010f68c
test eax, eax
je 0x1003f7a1
push str.WanNengWBIME
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push 0x10183248
push eax
call fcn.10041b30
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x1003f758
lea eax, [ebp - 0x218]
push eax
call fcn.1010f7c1
add esp, 4
cmp word [ebp - 0x218], 0
jne 0x1003f776
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebx + 0x3c]
call fcn.10041f70
jmp 0x1003f7d8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003f780
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x3c]
call fcn.10041f70
jmp 0x1003f7d8
mov edx, str.WanNengWBIME
lea ecx, [ebp - 0xc70]
call fcn.10059ff0
push eax
lea ecx, [ebx + 0x3c]
call fcn.10041540
mov eax, dword [ebp - 0xc5c]
cmp eax, 8
jb 0x1003f7d8
inc eax
lea ecx, [ebp - 0xc70]
push eax
push dword [ebp - 0xc70]
call fcn.10042110
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.10109ec2
mov esp, ebp
pop ebp
ret