Function at 0x42f6d9
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4b2f3f
call fcn.0049dfc4
sub esp, 0x8c
push ebx
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
mov dword [ebp - 0x54], eax
cmp eax, ebx
mov dword [ebp - 0x14], ebx
je 0x42f965
push str.InternetGetConnectedState
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42f918
lea ecx, [ebp - 0x14]
push ebx
push ecx
call eax
test eax, eax
setne byte [ebp - 0xd]
cmp byte [ebp - 0xd], bl
je 0x42f734
test byte [ebp - 0x14], 0x20
je 0x42f734
mov byte [ebp - 0xd], bl
test byte [ebp - 0x14], 4
push esi
mov esi, vtable._zstring_class_ztraits_0__.0
seta al
push edi
mov byte [0x4f4008], al
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
call fcn.0042f386
pop ecx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00410f26
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004012b4
push str.update.ini
lea ecx, [ebp - 0x28]
call fcn.004036f4
xor eax, eax
lea edi, [ebp - 0x17]
mov byte [ebp - 0x18], bl
lea ecx, [ebp - 0x28]
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00402f35
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x42f8c5
push 2
push ebx
push 0xfffffffffffffffd
push edi
mov dword [ebp - 0x40], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x40]
push ebx
push eax
lea eax, [ebp - 0x18]
push 3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x18], 0x76
push 0x14
je 0x42f823
call fcn.0049e01f
mov edi, eax
pop ecx
mov dword [ebp - 0x2c], edi
cmp edi, ebx
mov byte [ebp - 4], 3
je 0x42f849
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0042fa92
mov dword [edi], fcn.0042fd2c
jmp 0x42f84b
call fcn.0049e01f
mov edi, eax
pop ecx
mov dword [ebp - 0x2c], edi
cmp edi, ebx
mov byte [ebp - 4], 4
je 0x42f849
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0042fa92
mov dword [edi], 0x4c08c8
jmp 0x42f84b
xor edi, edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], esi
push 0x4e8d74
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
call fcn.00411399
mov esi, eax
push str.Main
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.00411399
mov edx, dword [edi]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push esi
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call dword [edx]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.004012b4
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
call fcn.004012b4
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004012b4
cmp edi, ebx
je 0x42f8c5
mov ecx, edi
call fcn.004351db
push edi
call fcn.00491430
pop ecx
cmp dword [ebp - 0x44], ebx
pop edi
pop esi
je 0x42f8e0
push dword [ebp - 0x44]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x42f8e0
mov byte [0x4f4008], 1
cmp byte [ebp - 0xd], bl
je 0x42f8f7
mov eax, dword [ebp - 0x14]
and al, 2
neg al
sbb eax, eax
inc eax
inc eax
mov dword [0x4f4004], eax
jmp 0x42f901
mov dword [0x4f4004], 3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.004012b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004012b4
push SysReAllocStringLen
lea ecx, [ebp - 0x98]
call fcn.00401e2f
push dword [ebp - 0x14]
mov dword [ebp - 4], 8
push dword [0x4f4004]
push str.UseWininet
push str.API:__s__State___d__dwState___d
push 0x10
push eax
call fcn.00401e6a
or dword [ebp - 4], 0xffffffff
add esp, 0x18
lea ecx, [ebp - 0x8c]
call fcn.004012b4
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret