Function at 0x402f00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416e69
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x421008]
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
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x70], ebx
mov dword [ebx + 0x10], 0
jb 0x402f60
mov eax, dword [ebx]
jmp 0x402f62
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x6c], 1
call fcn.00402e40
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x34], xmm0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x402fac
mov eax, dword [ecx]
jmp 0x402fae
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x64]
push edx
push eax
call fcn.00401500
lea ecx, [ebp - 0x34]
call fcn.00402600
add esp, 0x18
mov byte [ebp - 4], 2
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x30]
mov ecx, edi
mov esi, dword [ebp - 0x34]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40312a
cmp esi, edi
je 0x40312a
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x38], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
call fcn.00401500
xor eax, eax
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x14], 7
push eax
mov dword [ebp - 0x18], 0
call fcn.00401500
push 1
push str..__
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00404950
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call fcn.00404a30
push 0xe
push str.WeChatWin.dll
mov ecx, eax
call fcn.00404950
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4030c2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40309f
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00401a60
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x4030b5
inc eax
push eax
push dword [ebp - 0x4c]
call fcn.00401a60
add esi, 0x18
cmp esi, edi
jne 0x403000
jmp 0x40312a
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x64]
mov ecx, ebx
push eax
call fcn.00404a30
push 1
push str..__
mov ecx, eax
call fcn.00404950
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call fcn.00404a30
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x403100
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00401a60
xor eax, eax
mov byte [ebp - 4], 2
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x40312a
inc eax
push eax
push dword [ebp - 0x4c]
call fcn.00401a60
cmp dword [ebx + 0x10], 0
jne 0x40313f
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x64]
mov ecx, ebx
push eax
call fcn.00404a30
lea ecx, [ebp - 0x34]
call fcn.00404750
mov ecx, dword [ebp - 0x50]
cmp ecx, 8
jb 0x403159
inc ecx
push ecx
push dword [ebp - 0x64]
call fcn.00401a60
mov eax, ebx
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.0040655e
mov esp, ebp
pop ebp
ret