Function at 0x4b5980
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x57de7b
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x16c]
mov ebx, ecx
mov dword [esp + 0x14], 0
test byte [0x6199c8], 1
mov dword [esp + 0x30], ebx
jne 0x4b59f2
or dword [0x6199c8], 1
call fcn.0046c480
push 0x580670
call fcn.0056a011
add esp, 4
mov esi, 0x6199cc
call fcn.00471a60
cmp eax, 1
jne 0x4b5eb1
mov eax, dword [ebx + 0x1988]
mov edx, dword [eax + 0x1c]
lea ecx, [ebx + 0x1988]
call edx
test al, al
je 0x4b5eb1
xor eax, eax
mov dword [esp + 0x145], eax
mov word [esp + 0x149], ax
mov byte [esp + 0x14b], al
lea eax, [esp + 0x144]
push eax
mov ecx, ebp
mov byte [esp + 0x148], 0
call fcn.00439b20
add esp, 4
call fcn.0048f630
call fcn.0048fa70
test eax, eax
je 0x4b5b66
call fcn.0048f7b0
test eax, eax
je 0x4b5b66
lea ecx, [esp + 0xd0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
or edi, 0xffffffff
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf8], edi
xor ebp, ebp
mov dword [esp + 0x164], ebp
call fcn.0048f630
call fcn.00490080
neg eax
sbb eax, eax
lea ecx, [esp + 0x20]
neg eax
push ecx
lea edx, [esp + 0x148]
add eax, 1
lea esi, [ebx + 0x1aac]
push edx
mov ecx, esi
mov dword [esp + 0xf8], eax
mov dword [esp + 0xf4], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.004ae8f0
test al, al
jne 0x4b5aee
lea eax, [esp + 0x144]
push eax
mov ecx, esi
call fcn.004aea20
jmp 0x4b5aff
cmp dword [esp + 0x20], ebp
je 0x4b5aff
mov dword [esp + 0xf0], 1
lea ecx, [esp + 0xfc]
call fcn.004b5900
push eax
lea ecx, [esp + 0xd4]
mov byte [esp + 0x168], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x164], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x148]
push edx
mov eax, ebx
call fcn.004af310
lea ecx, [esp + 0xd0]
mov dword [esp + 0x164], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x4b61fb
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x164], 2
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x170], 3
call fcn.004afb80
mov ecx, ebp
mov edx, eax
call fcn.00544ae0
test eax, eax
mov edi, dword [esp + 0x1c]
je 0x4b5e63
cmp dword [edi - 0xc], 0
je 0x4b5e63
lea ecx, [esp + 0xd0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
or eax, 0xffffffff
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
push edi
lea esi, [esp + 0x50]
mov byte [esp + 0x168], 4
call fcn.00413ca0
mov byte [esp + 0x164], 5
mov eax, dword [eax]
push eax
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov byte [esp + 0x164], 4
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
cmp eax, ecx
je 0x4b5c3e
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, dword [esp + 0x2c]
mov ecx, 1
xor ebp, ebp
cmp eax, ecx
mov dword [esp + 0xec], ecx
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xf4], 2
je 0x4b5c6b
cmp eax, 3
jne 0x4b5c6d
mov ebp, ecx
cmp eax, ecx
je 0x4b5e1c
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
je 0x4b5ce7
xor edi, edi
lea ebx, [esp + 0x20]
call fcn.004125d0
push eax
lea edx, [esp + 0x2c]
mov byte [esp + 0x168], 6
push edx
mov ebx, str.datahttproot_apk_
mov dword [esp + 0x1c], 1
call fcn.0041a8a0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
mov edi, 7
mov dword [esp + 0x170], edi
push edx
mov ebx, eax
mov dword [esp + 0x24], 3
call fcn.00413170
mov eax, dword [eax]
add esp, 0x10
push eax
mov dword [esp + 0x18], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b5ce7
mov bl, 1
jmp 0x4b5ce9
xor bl, bl
test byte [esp + 0x14], 4
je 0x4b5cfe
and dword [esp + 0x14], 0xfffffffb
lea ecx, [esp + 0x2c]
call fcn.00410000
test byte [esp + 0x14], 2
je 0x4b5d13
and dword [esp + 0x14], 0xfffffffd
lea ecx, [esp + 0x28]
call fcn.00410000
mov dword [esp + 0x164], 4
test byte [esp + 0x14], 1
je 0x4b5d2e
lea ecx, [esp + 0x20]
call fcn.00410000
test bl, bl
je 0x4b5e18
push str._fu
lea ecx, [esp + 0xd4]
call dword [0x582440]
push esi
lea esi, [esp + 0x50]
call fcn.00413ca0
sub esp, 0x84
mov edi, esp
mov esi, eax
mov byte [esp + 0x1e8], 8
mov ecx, 0x21
rep movsd dword es:[edi], dword [esi]
push 0x221f
push str.http:__hi.liebao.cn:_d_apk__s
lea esi, [esp + 0x188]
call fcn.0040cb00
add esp, 0x8c
mov bl, 0xa
mov byte [esp + 0x164], bl
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
cmp eax, ecx
je 0x4b5da6
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
cmp dword [esp + 0x114], 0x10
mov edi, dword [esp + 0x100]
jae 0x4b5dbe
lea edi, [esp + 0x100]
mov edx, dword [esp + 0x110]
add edx, 1
push edx
lea esi, [esp + 0x11c]
call fcn.00401110
add esp, 4
push eax
lea ecx, [esp + 0xd4]
mov byte [esp + 0x168], 0xb
call dword [0x582444]
mov ecx, esi
mov byte [esp + 0x164], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x164], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ebx, dword [esp + 0x30]
jmp 0x4b5e20
mov ebx, dword [esp + 0x30]
test ebp, ebp
je 0x4b5e37
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x148]
push ecx
mov eax, ebx
call fcn.004af310
lea ecx, [esp + 0xd0]
mov byte [esp + 0x164], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x18]
call fcn.00410000
lea ecx, [esp + 0x1c]
call fcn.00410000
jmp 0x4b61fb
mov byte [esp + 0x164], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or esi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b5e8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x164], esi
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b5eb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4b5eb4
or esi, 0xffffffff
cmp dword [ebx + 0x2e50], 0
je 0x4b61fb
lea ecx, [esp + 0x38]
push ecx
call fcn.00401c80
lea ecx, [ebx + 0x2e3c]
lea edi, [esp + 0x38]
mov dword [esp + 0x164], 0xc
call fcn.00401840
mov ecx, edi
call fcn.00401fa0
cmp eax, 1
je 0x4b5efd
mov dword [esp + 0x164], esi
jmp 0x4b61f2
mov eax, dword [ebx + 0xa74]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x34], edi
je 0x4b5f26
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
lea ecx, [esp + 0x34]
push ecx
push ebp
push eax
call edx
test eax, eax
je 0x4b5f26
test byte [esp + 0x34], 1
je 0x4b5ef1
xor eax, eax
mov dword [esp + 0x14d], eax
mov word [esp + 0x151], ax
mov byte [esp + 0x153], al
lea eax, [esp + 0x14c]
push eax
mov ecx, ebp
mov byte [esp + 0x150], 0
call fcn.00439b20
add esp, 4
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0x150]
lea ecx, [ebx + 0x1aac]
push eax
mov dword [esp + 0x14c], edi
mov dword [esp + 0x150], edi
mov dword [esp + 0x30], ecx
call fcn.004ae8f0
test al, al
je 0x4b5f96
cmp dword [esp + 0x148], edi
jg 0x4b5ef1
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x164], 0xd
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x164], 0xe
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov bl, 0xf
mov edx, ebp
lea edi, [esp + 0x18]
mov byte [esp + 0x164], bl
call fcn.00410020
mov ecx, edi
push ecx
mov eax, 0xc
xor ecx, ecx
lea edx, [esp + 0x24]
call fcn.00413460
mov byte [esp + 0x164], 0x10
call fcn.004101e0
mov byte [esp + 0x164], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x4b6043
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x2c], esp
mov edi, esp
call fcn.00410660
add eax, 0x10
mov dword [edi], eax
push ecx
mov byte [esp + 0x174], 0x11
call fcn.004afd10
add esp, 4
mov ecx, eax
mov byte [esp + 0x170], bl
call fcn.00442c30
test eax, eax
mov edi, dword [esp + 0x1c]
je 0x4b617a
push str.Apple
push edi
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4b617a
lea ecx, [esp + 0x118]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
or edi, 0xffffffff
mov dword [esp + 0x13c], edi
mov dword [esp + 0x140], edi
push str.http:__act.duba.com_wifi_welcome_
lea ecx, [esp + 0x11c]
mov byte [esp + 0x168], 0x12
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea eax, [esp + 0x118]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x150]
push ecx
mov dword [esp + 0x13c], 2
mov dword [esp + 0x140], 1
call fcn.004af310
mov eax, dword [esp + 0x148]
mov edx, dword [esp + 0x144]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
add eax, 1
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14c]
push eax
lea esi, [esp + 0x24]
mov dword [esp + 0x24], edx
call fcn.004aea70
lea ecx, [esp + 0x118]
mov byte [esp + 0x164], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x18]
call fcn.00410000
lea ecx, [esp + 0x14]
call fcn.00410000
lea ecx, [esp + 0x1c]
call fcn.00410000
mov dword [esp + 0x164], edi
jmp 0x4b61f2
mov byte [esp + 0x164], 0xe
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b619b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x164], 0xd
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b61c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x164], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b61e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x164], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.00401d10
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00569ed6
add esp, 0x154
ret 4