Function at 0x407ee0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481245
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4a20a0]
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
lea ecx, [ebp - 0x74]
call fcn.00426ff9
mov dword [ebp - 4], 0
mov esi, dword [0x4a4ca8]
test esi, esi
jne 0x407f53
push 0x114
call fcn.004176eb
mov esi, eax
add esp, 4
mov dword [ebp - 0x88], esi
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0041e2ec
mov byte [ebp - 4], 0
mov dword [0x4a4ca8], esi
mov ecx, esi
call fcn.0041e4d3
sub esp, 0x18
mov esi, eax
mov edx, esp
mov dword [ebp - 0x88], esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 8
jb 0x407f7f
mov eax, dword [edx]
jmp 0x407f81
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [esi], cx
je 0x407f9f
mov ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407f90
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.0040b830
mov byte [ebp - 4], 2
mov esi, dword [0x4a4ca8]
test esi, esi
jne 0x407fdd
push 0x114
call fcn.004176eb
mov esi, eax
add esp, 4
mov dword [ebp - 0x7c], esi
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0041e2ec
mov byte [ebp - 4], 2
mov dword [0x4a4ca8], esi
mov ecx, esi
call fcn.0041e4c4
sub esp, 0x18
mov esi, eax
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 8
jb 0x408003
mov eax, dword [edx]
jmp 0x408005
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp word [esi], cx
je 0x408023
mov ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408014
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.0040b830
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0
call fcn.00427abf
lea ecx, [ebp - 0xbc]
call fcn.00427cc4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
push 0x49
push 0x49a9e0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.0040bcc0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x4080aa
mov eax, dword [ecx]
jmp 0x4080ac
mov eax, ecx
push 0x49
xor edx, edx
push str.http:__jgztg.binghuokeji.cn_image_fn_6c75ccda777b77bb52c9c515b9bcf43b.cef
mov word [eax], dx
call fcn.0040b830
push 0
lea ecx, [ebp - 0x74]
call fcn.00427043
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 0x408111
lea eax, [ebp - 0x78]
push eax
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.0040b930
call fcn.0042023b
add esp, 0x1c
mov edi, eax
jmp 0x408184
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xbc]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00427e99
lea ecx, [ebp - 0xbc]
call fcn.00428102
mov esi, eax
mov ecx, 1
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmove eax, ecx
mov dword [ebp - 0x78], eax
inc eax
push eax
call fcn.00417994
mov edi, eax
add esp, 4
test edi, edi
jne 0x408159
xor esi, esi
jmp 0x4081c5
mov eax, dword [ebp - 0x78]
inc eax
push eax
push 0
push edi
call fcn.00434750
mov eax, dword [esi + 4]
add esp, 0xc
xor ecx, ecx
sub eax, dword [esi]
je 0x408184
mov eax, dword [esi]
mov al, byte [ecx + eax]
mov byte [ecx + edi], al
inc ecx
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp ecx, eax
jb 0x408172
lea eax, [ebp - 0x84]
mov dword [ebp - 0x80], 0
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x84], 0
push eax
push dword [ebp - 0x78]
push edi
call fcn.00421cdd
add esp, 0x10
mov ecx, ebx
push dword [ebp - 0x80]
call fcn.00408db0
mov esi, eax
test edi, edi
je 0x4081c5
push edi
call fcn.004174aa
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40821e
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x4081dd
call fcn.00437914
add eax, eax
cmp eax, 0x1000
jb 0x408215
test byte [ebp - 0x28], 0x1f
je 0x4081f1
call fcn.00437914
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4081fd
call fcn.00437914
sub ecx, eax
cmp ecx, 4
jae 0x408209
call fcn.00437914
cmp ecx, 0x23
jbe 0x408213
call fcn.00437914
mov ecx, eax
push ecx
call fcn.00417494
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 0x10
jb 0x40827c
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x408273
test cl, 0x1f
je 0x40824f
call fcn.00437914
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40825b
call fcn.00437914
sub ecx, eax
cmp ecx, 4
jae 0x408267
call fcn.00437914
cmp ecx, 0x23
jbe 0x408271
call fcn.00437914
mov ecx, eax
push ecx
call fcn.00417494
add esp, 4
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00427d05
lea ecx, [ebp - 0x74]
call fcn.00427026
mov eax, esi
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.00417499
mov esp, ebp
pop ebp
ret