Function at 0x40ea20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51db45
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x55d184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xb0], esi
mov eax, dword [0x55f8c0]
test eax, eax
jne 0x40ea93
push 0x11c
call fcn.0049bb2c
add esp, 4
mov dword [ebp - 0xac], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40ea85
mov ecx, eax
call fcn.00414ba0
jmp 0x40ea87
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x55f8c0], eax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.0041d7b1
mov edi, eax
add esi, 0x7c
cmp esi, edi
je 0x40ead1
mov ecx, esi
call fcn.00408700
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40eb0b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eb01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ef62
push edx
push ecx
call fcn.0049bb5c
add esp, 8
mov eax, dword [0x55f8c0]
test eax, eax
jne 0x40eb49
push 0x11c
call fcn.0049bb2c
add esp, 4
mov dword [ebp - 0xac], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x40eb3b
mov ecx, eax
call fcn.00414ba0
jmp 0x40eb3d
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x55f8c0], eax
mov ecx, eax
call fcn.0041e6c0
cmp dword [esi + 0x14], 8
mov byte [ebp - 0xa5], al
jb 0x40eb5e
mov esi, dword [esi]
push esi
mov esi, dword [ebp - 0xb0]
lea ecx, [esi + 0xac]
call fcn.0042eb1f
cmp byte [ebp - 0xa5], 0
mov edi, dword [ebp + 8]
jne 0x40edfc
test edi, edi
jne 0x40edfc
push str.http:__hkzgu.xsfaya.com_bizhi_haokan_22a96a55dfa60930cfda10f610642056.bca
lea ecx, [ebp - 0x40]
call fcn.0040c8b0
mov dword [ebp - 4], 2
cmp dword [ebp - 0x30], edi
jne 0x40ebe5
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x40ed07
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ebd6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ef67
push edx
push ecx
call fcn.0049bb5c
add esp, 8
jmp 0x40ed07
lea eax, [ebp - 0x40]
push eax
call fcn.00425faa
add esp, 4
lea ecx, [ebp - 0xf0]
call fcn.0042022c
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.004202ea
lea ecx, [ebp - 0xf0]
call fcn.004205be
mov edi, eax
mov ecx, 1
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmove eax, ecx
mov dword [ebp - 0xac], eax
lea esi, [eax + 1]
push esi
call fcn.0049be25
push esi
mov esi, eax
mov dword [ebp - 0xb8], eax
push 0
push esi
call fcn.004cbbe0
mov ecx, dword [edi + 4]
add esp, 0x10
xor edx, edx
sub ecx, dword [edi]
je 0x40ec72
nop dword [eax]
mov eax, dword [edi]
mov al, byte [edx + eax]
mov byte [edx + esi], al
inc edx
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp edx, eax
jb 0x40ec60
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xb4], 0
push eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xbc], 0
push eax
push dword [ebp - 0xac]
push esi
call fcn.0042b47c
mov eax, dword [ebp - 0xb4]
add esp, 0x10
test eax, eax
jne 0x40ed7c
test esi, esi
je 0x40ecbe
push esi
call fcn.0049be2e
add esp, 4
lea ecx, [ebp - 0xf0]
call fcn.0042026c
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x40ed04
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ecfa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ef6c
push edx
push ecx
call fcn.0049bb5c
add esp, 8
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0xb0]
cmp dword [eax + 0xfc], 0
jne 0x40ed27
cmp byte [ebp - 0xa5], 0
jne 0x40ed27
test edi, edi
je 0x40ef45
lea ecx, [ebp - 0xa4]
call fcn.00410900
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 4
call fcn.00411cd0
mov eax, dword [0x55f8c0]
test eax, eax
jne 0x40ee13
push 0x11c
call fcn.0049bb2c
add esp, 4
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x40ee08
mov ecx, eax
call fcn.00414ba0
jmp 0x40ee0a
mov edi, dword [ebp - 0xb0]
mov ecx, edi
push eax
call fcn.0040e7a0
mov dword [ebp - 0xac], eax
test esi, esi
je 0x40ed9d
push esi
call fcn.0049be2e
add esp, 4
lea ecx, [ebp - 0xf0]
call fcn.0042026c
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x40ede3
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40edd9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ef71
push edx
push ecx
call fcn.0049bb5c
add esp, 8
cmp dword [ebp - 0xac], 0
je 0x40ed04
mov ecx, edi
call fcn.0040e490
jmp 0x40ed04
mov ecx, esi
call fcn.0040e490
jmp 0x40ed07
xor eax, eax
mov byte [ebp - 4], 4
mov dword [0x55f8c0], eax
push 0x525840
push str.41dba
push 0x52625c
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0041d7ef
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 6
je 0x40eef0
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
je 0x40eef0
mov edi, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
cmp edi, 8
mov eax, dword [ebp - 0x18]
cmovae edx, esi
test eax, eax
je 0x40ee93
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x40ee8d
nop
cmp ecx, edx
je 0x40ee93
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x40ee80
sub ecx, edx
sar ecx, 1
jmp 0x40ee96
or ecx, 0xffffffff
test ecx, ecx
jle 0x40eef6
xor eax, eax
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x18], ecx
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
cmovb ecx, dword [ebp - 0x18]
cmp edi, 8
push ecx
cmovae eax, esi
mov dword [ebp - 0x2c], 7
push eax
lea ecx, [ebp - 0x40]
call fcn.00407300
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ccb0
lea ecx, [ebp - 0x40]
call fcn.00408700
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0042da7c
add esp, 4
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
cmp edi, 8
jb 0x40ef26
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x40ef1c
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ef76
push edi
push esi
call fcn.0049bb5c
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00410a00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049be04
mov esp, ebp
pop ebp
ret 4
call fcn.004cf6b9
call fcn.004cf6b9
call fcn.004cf6b9
call fcn.004cf6b9
call fcn.004cf6b9
int3