Function at 0x403860
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c2e5
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x4c20f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x15c]
push 0
push eax
call fcn.00474010
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x30c], 0
mov dword [ebp - 0x308], 0xf
mov byte [ebp - 0x31c], 0
push 0x104
lea eax, [ebp - 0x2a0]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00474010
push 0x40
lea eax, [ebp - 0x19c]
push 0
push eax
call fcn.00474010
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00474010
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3b8], 0
mov dword [ebp - 0x3b4], 0xf
mov byte [ebp - 0x3c8], 0
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2f0], 0xf
mov byte [ebp - 0x304], 0
mov dword [ebp - 0x360], 0
mov dword [ebp - 0x350], 0
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], 0
xor eax, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x3d0], eax
lea eax, [ebp - 0x15c]
push 0x104
push eax
call fcn.0047aba2
add esp, 0x38
lea eax, [ebp - 0x15c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x15c]
push 0x5c
push eax
call fcn.004735b0
lea ecx, [ebp - 0x15c]
add esp, 8
lea edx, [ecx + 1]
mov byte [eax], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4039c0
sub ecx, edx
lea eax, [ebp - 0x15c]
push ecx
push eax
lea ecx, [ebp - 0x31c]
call fcn.00406bb0
lea ecx, [ebp - 0x15c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4039e5
sub ecx, edx
lea eax, [ebp - 0x15c]
push ecx
push eax
mov ecx, 0x4c2b68
call fcn.00406bb0
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x19c]
call fcn.00402e20
mov ecx, dword [ebp - 0x30c]
mov eax, accept
sub eax, ecx
cmp eax, 0xa
jae 0x403a25
call fcn.004019d0
cmp dword [ebp - 0x308], 0x10
lea eax, [ebp - 0x31c]
push 0xa
cmovae eax, dword [ebp - 0x31c]
push 0x4bb074
push ecx
push eax
lea eax, [ebp - 0x31c]
push eax
push dword [ebp - 0x3ec]
lea ecx, [ebp - 0x3b0]
call fcn.00408460
mov ecx, dword [0x4c2bac]
cmp ecx, 0x10
jb 0x403a93
mov eax, dword [0x4c2b98]
inc ecx
cmp ecx, 0x1000
jb 0x403a89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044a2
mov eax, edx
push ecx
push eax
call fcn.00471ddf
add esp, 8
movups xmm0, xmmword [ebp - 0x3b0]
push 0x2c
lea eax, [ebp - 0x348]
movups xmmword [0x4c2b98], xmm0
push 0
movq xmm0, qword [ebp - 0x3a0]
push eax
movq qword [0x4c2ba8], xmm0
call fcn.00474010
mov dword [ebp - 0x340], 0
add esp, 0xc
mov dword [ebp - 0x348], 1
mov byte [ebp - 0x344], 0
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 0xf
mov byte [ebp - 0x340], 0
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 0
mov byte [ebp - 4], 4
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
inc esi
lea eax, [ebp - 0x15c]
push esi
push eax
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x3cc], esi
push str._s_d
push eax
call fcn.00407840
lea ecx, [ebp - 0x2a0]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403b50
sub ecx, edx
lea eax, [ebp - 0x2a0]
push ecx
push eax
lea ecx, [ebp - 0x360]
call fcn.00406bb0
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x403b86
push 0x14
call edi
jmp 0x404219
push 0xa
lea eax, [ebp - 0x2a4]
push eax
push esi
call fcn.0047b12f
mov ecx, dword [ebp - 0x350]
mov eax, accept
sub eax, ecx
add esp, 0xc
cmp eax, 6
jb 0x403a20
cmp dword [ebp - 0x34c], 0x10
lea eax, [ebp - 0x360]
push 6
cmovae eax, dword [ebp - 0x360]
push 0x4bb090
push ecx
push eax
lea eax, [ebp - 0x360]
push eax
push dword [ebp - 0x3ec]
lea ecx, [ebp - 0x3e8]
call fcn.00408460
lea edi, [ebp - 0x2a4]
mov byte [ebp - 4], 5
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x403bf0
mov edx, dword [ebp - 0x3d4]
sub edi, ecx
mov ecx, dword [ebp - 0x3d8]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x403c4b
lea eax, [ecx + edi]
cmp edx, 0x10
mov dword [ebp - 0x3d8], eax
lea esi, [ebp - 0x3e8]
cmovae esi, dword [ebp - 0x3e8]
lea eax, [ebp - 0x2a4]
add esi, ecx
push eax
push esi
call fcn.00473a90
mov byte [edi + esi], 0
lea eax, [ebp - 0x3e8]
mov esi, dword [ebp - 0x3cc]
add esp, 0xc
jmp 0x403c6b
lea eax, [ebp - 0x2a4]
mov byte [ebp - 0x3f8], 0
push eax
push dword [ebp - 0x3f8]
lea ecx, [ebp - 0x3e8]
push edi
call fcn.00407fc0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2d4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2c4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2c0]
mov eax, edx
mov ecx, dword [ebp - 0x2c4]
sub eax, ecx
cmp eax, 4
jb 0x403cf7
lea eax, [ecx + 4]
cmp edx, 0x10
mov dword [ebp - 0x2c4], eax
lea eax, [ebp - 0x2d4]
cmovae eax, dword [ebp - 0x2d4]
mov dword [eax + ecx], 0x6578652e
mov byte [eax + ecx + 4], 0
lea eax, [ebp - 0x2d4]
jmp 0x403d18
push 4
push 0x4bb088
mov byte [ebp - 0x3fc], 0
lea ecx, [ebp - 0x2d4]
push dword [ebp - 0x3fc]
push 4
call fcn.00407fc0
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x2f0]
movq qword [ebp - 0x3f0], xmm1
movups xmmword [ebp - 0x414], xmm0
cmp edx, 0x10
jb 0x403d89
mov ecx, dword [ebp - 0x304]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403d70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044a2
push edx
push ecx
call fcn.00471ddf
movups xmm0, xmmword [ebp - 0x414]
add esp, 8
movq xmm1, qword [ebp - 0x3f0]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2c0]
movq qword [ebp - 0x2f4], xmm1
movups xmmword [ebp - 0x304], xmm0
cmp edx, 0x10
jb 0x403dd6
mov ecx, dword [ebp - 0x2d4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403dcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044a2
push edx
push ecx
call fcn.00471ddf
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x3d4]
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 0xf
mov byte [ebp - 0x2d4], 0
cmp edx, 0x10
jb 0x403e2f
mov ecx, dword [ebp - 0x3e8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403e25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044a2
push edx
push ecx
call fcn.00471ddf
add esp, 8
push 0xa
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.0047b164
add esp, 0xc
mov dword [ebp - 0x2bc], 0
xor eax, eax
mov dword [ebp - 0x2ac], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2a8], 7
mov word [ebp - 0x2bc], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403e70
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2bc]
call fcn.00406a50
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x3e8]
call fcn.00407860
push 0x4bb098
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2ec]
call fcn.00407990
add esp, 8
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x3d4]
cmp edx, 8
jb 0x403f02
mov ecx, dword [ebp - 0x3e8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403ef8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044a2
push edx
push ecx
call fcn.00471ddf
add esp, 8
xor eax, eax
mov dword [ebp - 0x3d8], 0
cmp dword [ebp - 0x2d8], 8
lea ecx, [ebp - 0x2ec]
mov dword [ebp - 0x3d4], 7
cmovae ecx, dword [ebp - 0x2ec]
mov word [ebp - 0x3e8], ax
call fcn.004025b0
test al, al
jne 0x404187
cmp byte [ebp - 0x347], al
jne 0x404187
mov ecx, dword [0x4c4a7c]
mov edi, ecx
mov esi, dword [ecx + 4]
lea eax, [ecx + 4]
mov dword [ebp - 0x3f4], ecx
mov dword [ebp - 0x3ec], eax
cmp byte [esi + 0xd], 0
jne 0x403fb2
nop dword [eax]
lea ecx, [ebp - 0x2ec]
lea eax, [esi + 0x10]
push ecx
push eax
call fcn.004083d0
test al, al
je 0x403f89
mov esi, dword [esi + 8]
jmp 0x403fac
cmp byte [edi + 0xd], 0
je 0x403fa4
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x2ec]
push eax
call fcn.004083d0
test al, al
cmovne edi, esi
mov dword [ebp - 0x3f4], esi
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
je 0x403f70
cmp byte [edi + 0xd], 0
mov eax, edi
cmovne eax, dword [ebp - 0x3ec]
mov esi, dword [eax]
cmp byte [esi + 0xd], 0
jne 0x403ff3
nop word [eax + eax]
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x2ec]
push eax
call fcn.004083d0
test al, al
je 0x403fea
mov edi, esi
mov esi, dword [esi]
jmp 0x403fed
mov esi, dword [esi + 8]
cmp byte [esi + 0xd], 0
je 0x403fd0
push edi
push dword [ebp - 0x3f4]
call fcn.00406770
sub esp, 0x18
lea eax, [ebp - 0x304]
mov ecx, esp
push eax
call fcn.00405b60
lea ecx, [ebp - 0x2d4]
call fcn.00402430
cmp dword [ebp - 0x2f0], 0x10
lea eax, [ebp - 0x304]
cmovae eax, dword [ebp - 0x304]
push eax
push str.proxy:_s_
call fcn.00401780
xor eax, eax
mov dword [ebp - 0x390], 0
mov dword [ebp - 0x378], 0
add esp, 0x20
mov dword [ebp - 0x380], 0
mov dword [ebp - 0x37c], 0xf
mov byte [ebp - 0x390], 0
mov dword [ebp - 0x368], 0
mov dword [ebp - 0x364], 7
mov word [ebp - 0x378], ax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x2ec]
cmp dword [ebp - 0x2d8], 8
lea ecx, [ebp - 0x378]
push dword [ebp - 0x2dc]
cmovae eax, dword [ebp - 0x2ec]
push eax
call fcn.00406a50
cmp dword [ebp - 0x2c0], 8
lea edx, [ebp - 0x2d4]
push str.monitor
cmovae edx, dword [ebp - 0x2d4]
lea ecx, [ebp - 0x50]
call fcn.00402830
add esp, 4
lea ecx, [ebp - 0x398]
push eax
call fcn.00404730
lea ecx, [ebp - 0x50]
call fcn.00402d80
cmp dword [ebp - 0x398], 0
jne 0x404118
cmp dword [ebp - 0x37c], 0x10
lea eax, [ebp - 0x390]
cmovae eax, dword [ebp - 0x390]
push eax
push str.start_process_error:_s_n
call fcn.00401780
add esp, 8
jmp 0x404132
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00407a50
lea ecx, [ebp - 0x398]
call fcn.00402d80
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x2c0]
cmp edx, 8
jb 0x404181
mov ecx, dword [ebp - 0x2d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404177
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044a2
push edx
push ecx
call fcn.00471ddf
add esp, 8
mov esi, dword [ebp - 0x3cc]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
call edi
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x2d8]
cmp edx, 8
jb 0x4041d5
mov ecx, dword [ebp - 0x2ec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4041cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044a2
push edx
push ecx
call fcn.00471ddf
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2a8]
cmp edx, 8
jb 0x404219
mov ecx, dword [ebp - 0x2bc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40420f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044a2
push edx
push ecx
call fcn.00471ddf
add esp, 8
cmp esi, 0xff
jb 0x403b24
mov esi, dword [ebp - 0x3d0]
inc esi
mov dword [ebp - 0x3d0], esi
cmp esi, 3
jle 0x404433
xor eax, eax
mov dword [ebp - 0x3d0], eax
cmp byte [ebp - 0x348], al
je 0x404364
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x3e8], eax
mov dword [ebp - 0x3d8], eax
lea edx, [ecx + 1]
mov dword [ebp - 0x3d4], 0xf
mov byte [ebp - 0x3e8], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404274
sub ecx, edx
lea eax, [ebp - 0x15c]
push ecx
push eax
lea ecx, [ebp - 0x3e8]
call fcn.00406bb0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2bc]
push 0x38
mov dword [ebp - 0x2bc], 0
push str.http:__51update.oss_cn_guangzhou.aliyuncs.com_update.xml
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], 0xf
mov byte [ebp - 0x2bc], 0
call fcn.00406bb0
lea eax, [ebp - 0x3e8]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x348]
call fcn.0040ea60
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x2a8]
cmp edx, 0x10
jb 0x404326
mov ecx, dword [ebp - 0x2bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40431c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044a2
push edx
push ecx
call fcn.00471ddf
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x3d4]
cmp edx, 0x10
jb 0x404364
mov ecx, dword [ebp - 0x3e8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40435a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044a2
push edx
push ecx
call fcn.00471ddf
add esp, 8
cmp byte [ebp - 0x347], 0
je 0x404426
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2ac], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x2a8], 0xf
mov byte [ebp - 0x2bc], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4043a0
sub ecx, edx
lea eax, [ebp - 0x15c]
push ecx
push eax
lea ecx, [ebp - 0x2bc]
call fcn.00406bb0
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x348]
call fcn.0040c3e0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2a8]
cmp edx, 0x10
jb 0x404410
mov ecx, dword [ebp - 0x2bc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404406
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044a2
push edx
push ecx
call fcn.00471ddf
add esp, 8
lea ecx, [ebp - 0x348]
call fcn.0040c740
lea ecx, [ebp - 0x348]
call fcn.0040e210
push str.next_n
call fcn.00401780
add esp, 4
push 0x14
call edi
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x3b0]
call fcn.00405b60
lea ecx, [ebp - 0x3b0]
mov byte [ebp - 4], 0x10
call fcn.004044b0
push 0xbb8
call edi
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x39c]
cmp edx, 0x10
jb 0x403b22
mov ecx, dword [ebp - 0x3b0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404493
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044a2
push edx
push ecx
call fcn.00471ddf
add esp, 8
jmp 0x403b22
call fcn.0047caa2
int3