Function at 0x489110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57820a
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x5dccb4]
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 eax, dword [ebp + 8]
cmp eax, 1
jne 0x4892d5
cmp dword [ebx + 0x30], 8
lea eax, [ebx + 0x1c]
jb 0x489157
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040e210
mov dword [ebp - 4], 0
call fcn.00489530
push dword [ebp - 0xc8]
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4891a0
push dword [ebp - 0xc8]
call fcn.004aa800
add esp, 4
test eax, eax
je 0x4891a0
push dword [ebp - 0xc8]
mov ecx, esi
call fcn.00489650
mov edx, dword [ebp - 0xc8]
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4891c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00489530
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4891ff
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x4892a6
mov eax, dword [esi]
mov ecx, esi
push 0
push str.ungzip
call dword [eax + 0x30]
mov eax, dword [esi]
mov ecx, esi
push 0
push str.gzip
call dword [eax + 0x30]
jmp 0x489201
xor esi, esi
test esi, esi
je 0x4892a6
lea eax, [ebp - 0xc8]
push eax
call fcn.00434730
mov ecx, eax
call fcn.0042e450
push 0xfde9
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], 1
call fcn.0042d540
push dword [eax]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0041f850
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 4
cmp eax, ecx
je 0x489264
push eax
call fcn.005338b8
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [esi]
cmovae ecx, dword [ebp - 0x28]
push ecx
push str.statis_url
mov ecx, esi
call dword [eax + 0x2c]
lea ecx, [ebp - 0x28]
call fcn.0041b080
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4892a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x15
xor eax, eax
mov dword [ebp - 0x18], 0
push str.ex_ary_method_titan
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00412a70
mov dword [ebp - 4], 5
jmp 0x489462
cmp eax, 2
jne 0x489485
cmp dword [ebx + 0x48], 8
lea eax, [ebx + 0x34]
jb 0x4892e9
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040e210
mov dword [ebp - 4], 6
call fcn.004895c0
push dword [ebp - 0xc8]
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x489332
push dword [ebp - 0xc8]
call fcn.004aa800
add esp, 4
test eax, eax
je 0x489332
push dword [ebp - 0xc8]
mov ecx, esi
call fcn.00489650
mov edx, dword [ebp - 0xc8]
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x489359
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004895c0
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x489391
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x489438
mov eax, dword [esi]
mov ecx, esi
push 0
push str.ungzip
call dword [eax + 0x30]
mov eax, dword [esi]
mov ecx, esi
push 0
push str.gzip
call dword [eax + 0x30]
jmp 0x489393
xor esi, esi
test esi, esi
je 0x489438
lea eax, [ebp - 0xc8]
push eax
call fcn.00434730
mov ecx, eax
call fcn.0042e450
push 0xfde9
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], 7
call fcn.0042d540
push dword [eax]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.0041f850
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0xa
cmp eax, ecx
je 0x4893f6
push eax
call fcn.005338b8
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [esi]
cmovae ecx, dword [ebp - 0x28]
push ecx
push str.statis_url
mov ecx, esi
call dword [eax + 0x2c]
lea ecx, [ebp - 0x28]
call fcn.0041b080
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x489438
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x16
xor eax, eax
mov dword [ebp - 0x18], 0
push str.ex_ary_method_xingyu
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00412a70
mov dword [ebp - 4], 0xb
lea eax, [ebp - 0x28]
push eax
call fcn.00434730
mov ecx, eax
call fcn.00431420
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00410b20
test esi, esi
jne 0x489504
call fcn.0042e2c0
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4894b9
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x4894bb
mov eax, dword [esi]
mov ecx, esi
push 0
push str.ungzip
call dword [eax + 0x30]
mov eax, dword [esi]
mov ecx, esi
push 0
push str.gzip
call dword [eax + 0x30]
jmp 0x4894bb
xor esi, esi
push 0x17
xor eax, eax
mov dword [ebx + 0x58], 0
push str.ex_ary_method_default
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00412a70
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0xc
push eax
call fcn.00434730
mov ecx, eax
call fcn.00431420
lea ecx, [ebp - 0x40]
call fcn.00410b20
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.004b0a78
mov esp, ebp
pop ebp
ret 4