Function at 0x42a85b
Capabilities:
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452d55
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20dc
call fcn.0043eba0
mov eax, dword [0x46d978]
xor eax, esp
mov dword [esp + 0x20d8], eax
push ebx
push esi
push edi
mov eax, dword [0x46d978]
xor eax, esp
push eax
lea eax, [esp + 0x20f0]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 4]
push 9
pop edx
cmp eax, edx
ja case.0x42a8b0.8
jmp dword [eax*4 + 0x42aeb7]
mov dword [ebx + 4], 2
call fcn.0042b01a
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
jmp 0x42ae92
mov eax, dword [ebx + 0xc98]
test eax, eax
je 0x42a8eb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov dword [ebx + 0xc98], edx
cmp dword [ebx + 0x220], 4
push dword [ebx + 0xc94]
mov eax, 0x8480f300
mov edi, 0x8400c300
mov dword [ebx + 4], 3
cmove edi, eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebx + 0x42c]
push eax
lea ecx, [esp + 0x18]
call fcn.004155a0
and dword [esp + 0x20f8], 0
lea esi, [ebx + 0xa44]
mov ecx, esi
call fcn.0040192d
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.0040553d
push ebx
push edi
xor eax, eax
push eax
push eax
push str.HTTP_1.1
push dword [esp + 0x28]
push 0x460c48
push dword [ebx + 0xc]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x42aa85
push 9
pop ecx
xor eax, eax
push 0x208e
lea edi, [esp + 0x34]
push eax
mov dword [esp + 0x34], 0x28
rep stosd dword es:[edi], eax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x5e]
push eax
call fcn.00435650
pop ecx
pop ecx
lea eax, [esp + 0x58]
push eax
mov ecx, ebx
call fcn.0042b13e
lea eax, [esp + 0x54]
mov ecx, eax
mov dword [esp + 0x34], eax
lea esi, [ecx + 2]
xor edx, edx
mov ax, word [ecx]
add ecx, 2
cmp ax, dx
jne 0x42a9af
push 4
lea eax, [ebx + 0xca4]
push eax
sub ecx, esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 2
push dword [ebx + 0x10]
sar ecx, 1
mov dword [esp + 0x48], ecx
call esi
push 4
lea eax, [ebx + 0xca8]
push eax
push 5
push dword [ebx + 0x10]
call esi
push 4
lea eax, [ebx + 0xcac]
push eax
push 6
push dword [ebx + 0x10]
call esi
cmp dword [ebx + 0xd10], 0
je 0x42aa40
cmp dword [ebx + 0xd1c], 0
je 0x42aa40
mov ecx, dword [ebx + 0xd20]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
push ecx
push 0x2b
push dword [ebx + 0x10]
call esi
test eax, eax
je 0x42aa40
mov ecx, dword [ebx + 0xd24]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
push ecx
push 0x2c
push dword [ebx + 0x10]
call esi
push ebx
push 1
push 0
lea eax, [esp + 0x38]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x42aa65
push dword [ebx + 0xc94]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x42aa72
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42aa85
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040390b
xor eax, eax
jmp 0x42ae92
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040390b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.__08x_ProcessState_OpenRequest_error__d_r_n
jmp 0x42ae87
push 4
pop esi
push dword [ebx + 0xc94]
mov dword [ebx + 4], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
push eax
push eax
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
je 0x42aad5
push dword [ebx + 0xc94]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x42aa7e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x42aa7e
call edi
push eax
push ebx
push str.__08x_ProcessState_EndRequest_error__d_r_n
call fcn.00410746
add esp, 0xc
mov eax, esi
jmp 0x42ae92
xor eax, eax
mov dword [ebx + 0xd08], eax
mov byte [ebx + 0xd0c], al
call fcn.0042b278
push dword [ebx + 0xc5c]
mov esi, dword [ebx + 0xc50]
push dword [ebx + 0xc58]
push esi
push ebx
push str.__08x_HttpSendRequest_called_successfully__HTTP_Code:_d___Len:_d__r_n
call fcn.00410746
mov edx, dword [ebx + 0xcd4]
mov ecx, dword [ebx + 0xcd0]
xor eax, eax
add esp, 0x14
cmp edx, eax
jl 0x42ac23
jg 0x42ab50
cmp ecx, eax
jbe 0x42ac23
cmp dword [ebx + 0xccc], eax
jl 0x42abf3
jg 0x42ab6a
cmp dword [ebx + 0xcc8], eax
jbe 0x42abf3
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
push dword [ebx + 0x10]
mov ecx, ebx
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x34], xmm0
call fcn.0042b43c
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
cmp edi, dword [ebx + 0xcc8]
jne 0x42abc8
cmp edx, dword [ebx + 0xccc]
jne 0x42abc8
cmp ecx, dword [ebx + 0xcd0]
jne 0x42abc8
cmp eax, dword [ebx + 0xcd4]
je 0x42ac21
push dword [esp + 0x20]
push dword [esp + 0x20]
push edx
push edi
push eax
push ecx
push dword [ebx + 0xcd4]
push dword [ebx + 0xcd0]
push ebx
push str.__08x__Cotent_Range_Error:_Want_:_I64d_Got:__I64d__Range:_I64d____I64d_r_n
call fcn.00410746
add esp, 0x28
jmp 0x42ae8f
mov edi, dword [ebx + 0xc5c]
cmp ecx, dword [ebx + 0xc58]
jne 0x42ac05
cmp edx, edi
je 0x42ac23
push edi
push dword [ebx + 0xc58]
push edx
push ecx
push ebx
push str.__08x__Cotent_Length_Error:_Want_:_I64d_Got:__I64d_r_n
call fcn.00410746
add esp, 0x18
jmp 0x42ae8f
xor eax, eax
cmp dword [ebx + 0xc9c], eax
jne 0x42ac66
cmp esi, 0xce
je 0x42ac3b
cmp esi, 0xc8
jne 0x42ac66
mov eax, dword [ebx + 0xcac]
push 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 6
push dword [ebx + 0x10]
mov dword [ebx + 4], 5
call dword [sym.imp.WININET.dll_InternetSetOptionW]
xor eax, eax
inc eax
jmp 0x42ae92
cmp esi, 0x1f4
je 0x42ac7e
test esi, esi
je 0x42ac7e
push esi
push ebx
push str.__08x__ProcessState_EndRequestDone_Server_Error__d___and_failed_r_n
jmp 0x42ae87
push dword [ebx + 0xcd8]
push esi
push ebx
push str.__08x__ProcessState_EndRequestDone_Server_Error__d____to_Retry__d_r_n
call fcn.00410746
add esp, 0x10
push 1
mov ecx, ebx
call fcn.0042aedf
jmp 0x42a8c3
push dword [ebx + 0xc94]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea esi, [ebx + 0xc68]
xor eax, eax
push 0xa
pop ecx
mov edi, esi
mov dword [ebx + 4], 6
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0xc90]
mov edx, dword [ebx + 0xcc4]
mov ecx, dword [ebx + 0xcc0]
mov dword [ebx + 0xc7c], eax
xor eax, eax
mov dword [esi], 0x28
mov dword [ebx + 0xc80], 0x1fff
cmp edx, eax
jl 0x42ad49
jg 0x42acf7
cmp ecx, eax
jbe 0x42ad49
mov edi, dword [ebx + 0xccc]
mov esi, dword [ebx + 0xcc8]
cmp edi, edx
jl 0x42ad1c
jg 0x42ad0d
cmp esi, ecx
jbe 0x42ad1c
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
mov ecx, dword [esp + 0x1c]
jmp 0x42ad3d
sub ecx, esi
sbb edx, edi
cmp edx, eax
jg 0x42ad34
jl 0x42ad2e
cmp ecx, 0x1fff
jae 0x42ad34
mov dword [esp + 0x20], edx
jmp 0x42ad3d
mov ecx, 0x1fff
mov dword [esp + 0x20], eax
mov dword [ebx + 0xc80], ecx
lea esi, [ebx + 0xc68]
cmp dword [ebx + 0xc80], eax
je 0x42ad98
push ebx
push 8
push esi
push dword [ebx + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x42ad98
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x42aa7e
call esi
push eax
push ebx
push str.__08x_ProcessState_ReceiveData_InternetReadFileEx_failed__error__d_r_n
call fcn.00410746
add esp, 0xc
cmp dword [ebx + 0xc80], 0
jne 0x42ae8f
jmp 0x42ac93
mov ecx, dword [ebx + 0xc80]
mov eax, dword [ebx + 0xc90]
xor edx, edx
mov dword [ebx + 4], 7
mov byte [ecx + eax], dl
push dword [ebx + 0xc94]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0xc80]
test eax, eax
je 0x42ade1
mov dword [ebx + 0xd08], eax
mov eax, dword [ebx + 0xc90]
push 2
mov al, byte [eax]
mov byte [ebx + 0xd0c], al
jmp 0x42ae91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx + 0xd00]
push dword [ebx + 0xc9c]
push dword [ebx + 0xcc4]
push dword [ebx + 0xcc0]
push dword [ebx + 0xccc]
push dword [ebx + 0xcc8]
push dword [ebx + 0xcbc]
push dword [ebx + 0xcb8]
push ebx
push str.__08x__ReceiveData0__I64d__I64d__I64d_AsyncError:_d_Last:_d__LastError:_d_r_n
call fcn.00410746
mov eax, dword [ebx + 0xcc8]
add esp, 0x2c
cmp eax, dword [ebx + 0xcc0]
jne 0x42ae8f
mov eax, dword [ebx + 0xccc]
cmp eax, dword [ebx + 0xcc4]
jne 0x42ae8f
push 3
jmp 0x42ae91
mov ecx, dword [ebx + 0xc80]
add dword [ebx + 0xce0], ecx
push 6
pop eax
adc dword [ebx + 0xce4], 0
add dword [ebx + 0xcc8], ecx
adc dword [ebx + 0xccc], 0
test ecx, ecx
cmove eax, edx
mov dword [ebx + 4], eax
jmp 0x42aa7e
mov eax, dword [ebx]
call dword [eax + 8]
jmp 0x42aa7e
push eax
push ebx
push str.__08x_Unknown_Stat__d_r_n
call fcn.00410746
add esp, 0xc
push 4
pop eax
mov ecx, dword [esp + 0x20f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20d8]
xor ecx, esp
call fcn.0042d3d2
mov esp, ebp
pop ebp
ret