Function at 0x42a8b0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x46be9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x78]
mov byte [esp + 0x78], al
call fcn.00404a40
mov edi, 0x48e488
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x48e488
lea ecx, [esp + 0x7c]
call fcn.004046d0
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x30]
mov dword [esp + 0xa0], ebx
call fcn.00404a40
mov edi, 0x48e488
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x48e488
lea ecx, [esp + 0x34]
call fcn.004046d0
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 1
mov byte [esp + 0x48], dl
call fcn.00404a40
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 2
mov byte [esp + 0x58], al
call fcn.00404a40
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x68], cl
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 3
call fcn.00404a40
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x88]
mov byte [esp + 0xa0], 4
mov byte [esp + 0x88], dl
call fcn.00404a40
mov eax, dword [esp + 0xa4]
mov byte [esp + 0x9c], 5
mov cx, word [eax + 0x10]
lea esi, [eax + 0xe]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov byte [esp + 0x13], bl
mov dl, byte [esp + 0x13]
mov bp, ax
push ebx
lea ecx, [esp + 0x18]
and ebp, 0xffff
mov byte [esp + 0x18], dl
call fcn.00404a40
mov edi, 0x48e488
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x48e488
lea ecx, [esp + 0x1c]
call fcn.004046d0
cmp ebp, ebx
mov byte [esp + 0x9c], 6
jle 0x42ade7
mov eax, 3
mov edi, esi
sub eax, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], ebp
jmp 0x42aa2b
mov eax, dword [esp + 0x3c]
cmp byte [esp + 0x13], bl
jne 0x42aa6e
add eax, edi
cmp eax, ebp
jge 0x42add3
mov edi, str.GET
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x24]
not ecx
dec ecx
push ecx
push str.GET
push eax
call fcn.0043bf70
add esp, 0xc
test eax, eax
jne 0x42adcf
mov edi, dword [esp + 0x24]
mov byte [esp + 0x13], 1
mov cl, byte [edi]
push ecx
call fcn.0042a860
add esp, 4
test al, al
je 0x42add3
mov dl, byte [edi]
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], dl
mov eax, dword [esp + 0x40]
push eax
push 1
call fcn.0042f360
cmp byte [edi], 0xa
jne 0x42add3
mov edi, str.GET
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push str.GET
lea ecx, [esp + 0x20]
call fcn.00404930
mov edx, dword [0x46f7b0]
cmp eax, edx
je 0x42abd5
mov edi, 0x4878d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x4878d4
lea ecx, [esp + 0x20]
call fcn.00420dd0
mov esi, eax
mov edi, str._HTTP_1.1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push str._HTTP_1.1
lea ecx, [esp + 0x20]
call fcn.00404930
mov edi, eax
mov eax, dword [esp + 0x1c]
cmp eax, esi
jae 0x42ab1c
call fcn.0044a2c9
lea ecx, [esp + 0x14]
call fcn.00405c80
mov eax, dword [esp + 0x1c]
mov ecx, eax
sub ecx, esi
cmp ecx, edi
jae 0x42ab33
mov edi, ecx
cmp edi, ebx
jbe 0x42ab70
mov edx, dword [esp + 0x18]
sub eax, edi
sub eax, esi
lea ecx, [edx + edi]
add edx, esi
add ecx, esi
push eax
push ecx
push edx
call fcn.00439f90
mov esi, dword [esp + 0x28]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x14]
push ebx
push esi
call fcn.00405b60
test al, al
je 0x42ab70
push esi
lea ecx, [esp + 0x18]
call fcn.00405b40
lea ecx, [esp + 0x14]
mov esi, 4
call fcn.00405c80
mov eax, dword [esp + 0x1c]
cmp eax, esi
jae 0x42ab8c
mov esi, eax
cmp esi, ebx
jbe 0x42abbf
mov ecx, dword [esp + 0x18]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
call fcn.00439f90
mov edi, dword [esp + 0x28]
add esp, 0xc
sub edi, esi
lea ecx, [esp + 0x14]
push ebx
push edi
call fcn.00405b60
test al, al
je 0x42abbf
push edi
lea ecx, [esp + 0x18]
call fcn.00405b40
mov ecx, dword [0x46f7b0]
lea edx, [esp + 0x14]
push ecx
push ebx
push edx
lea ecx, [esp + 0x50]
call fcn.004044d0
mov edi, str.Referer:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push str.Referer:
lea ecx, [esp + 0x20]
call fcn.00404930
cmp eax, dword [0x46f7b0]
je 0x42acc3
mov edi, dword [esp + 0x1c]
lea esi, [edi - 2]
cmp edi, esi
jae 0x42ac10
call fcn.0044a2c9
lea ecx, [esp + 0x14]
call fcn.00405c80
mov eax, dword [esp + 0x1c]
sub eax, esi
cmp eax, edi
jae 0x42ac25
mov edi, eax
cmp edi, ebx
jbe 0x42ac5e
mov ecx, dword [esp + 0x18]
sub eax, edi
add ecx, esi
push eax
lea edx, [edi + ecx]
push edx
push ecx
call fcn.00439f90
mov esi, dword [esp + 0x28]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x14]
push ebx
push esi
call fcn.00405b60
test al, al
je 0x42ac5e
push esi
lea ecx, [esp + 0x18]
call fcn.00405b40
lea ecx, [esp + 0x14]
mov esi, 9
call fcn.00405c80
mov eax, dword [esp + 0x1c]
cmp eax, esi
jae 0x42ac7a
mov esi, eax
cmp esi, ebx
jbe 0x42acad
mov ecx, dword [esp + 0x18]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
call fcn.00439f90
mov edi, dword [esp + 0x28]
add esp, 0xc
sub edi, esi
lea ecx, [esp + 0x14]
push ebx
push edi
call fcn.00405b60
test al, al
je 0x42acad
push edi
lea ecx, [esp + 0x18]
call fcn.00405b40
mov edx, dword [0x46f7b0]
lea eax, [esp + 0x14]
push edx
push ebx
push eax
lea ecx, [esp + 0x70]
call fcn.004044d0
mov edi, str.Host:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push str.Host:
lea ecx, [esp + 0x20]
call fcn.00404930
cmp eax, dword [0x46f7b0]
je 0x42adb1
mov edi, dword [esp + 0x1c]
lea esi, [edi - 2]
cmp edi, esi
jae 0x42acfe
call fcn.0044a2c9
lea ecx, [esp + 0x14]
call fcn.00405c80
mov eax, dword [esp + 0x1c]
sub eax, esi
cmp eax, edi
jae 0x42ad13
mov edi, eax
cmp edi, ebx
jbe 0x42ad4c
mov ecx, dword [esp + 0x18]
sub eax, edi
add ecx, esi
push eax
lea edx, [edi + ecx]
push edx
push ecx
call fcn.00439f90
mov esi, dword [esp + 0x28]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x14]
push ebx
push esi
call fcn.00405b60
test al, al
je 0x42ad4c
push esi
lea ecx, [esp + 0x18]
call fcn.00405b40
lea ecx, [esp + 0x14]
mov esi, 6
call fcn.00405c80
mov eax, dword [esp + 0x1c]
cmp eax, esi
jae 0x42ad68
mov esi, eax
cmp esi, ebx
jbe 0x42ad9b
mov ecx, dword [esp + 0x18]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
call fcn.00439f90
mov edi, dword [esp + 0x28]
add esp, 0xc
sub edi, esi
lea ecx, [esp + 0x14]
push ebx
push edi
call fcn.00405b60
test al, al
je 0x42ad9b
push edi
lea ecx, [esp + 0x18]
call fcn.00405b40
mov edx, dword [0x46f7b0]
lea eax, [esp + 0x14]
push edx
push ebx
push eax
lea ecx, [esp + 0x60]
call fcn.004044d0
mov edi, 0x48e488
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x48e488
lea ecx, [esp + 0x1c]
call fcn.004046d0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
inc edi
dec eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
jne 0x42aa27
mov ecx, dword [esp + 0x5c]
cmp ecx, ebx
je 0x42af28
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x42af28
lea edi, [eax + ecx + 0x80]
push edi
call fcn.0045da09
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x42aea8
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 5
call fcn.00404a40
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0xa0], 4
call fcn.00404a40
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 3
call fcn.00404a40
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 2
call fcn.00404a40
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 1
call fcn.00404a40
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0xa0], bl
call fcn.00404a40
push 1
lea ecx, [esp + 0x78]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00404a40
jmp 0x42afde
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x48]
mov ecx, 0x46f7ac
cmp eax, ebx
je 0x42aecb
mov ecx, eax
mov eax, dword [esp + 0x58]
cmp eax, ebx
jne 0x42aed8
mov eax, 0x46f7ac
push ecx
push eax
push str.http:__
push str._s_s_s
push esi
call fcn.0043ac7e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xac]
push esi
call fcn.004046d0
mov eax, dword [0x46f7b0]
lea ecx, [esp + 0x64]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0xb8]
call fcn.004044d0
push esi
call fcn.0045da32
add esp, 4
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 5
call fcn.00404a40
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0xa0], 4
call fcn.00404a40
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 3
call fcn.00404a40
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 2
call fcn.00404a40
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 1
call fcn.00404a40
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x42afae
mov al, byte [ecx - 1]
cmp al, bl
je 0x42afa4
cmp al, 0xff
je 0x42afa4
dec al
mov byte [ecx - 1], al
jmp 0x42afae
dec ecx
push ecx
call fcn.0045da32
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x30], ebx
cmp ecx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
je 0x42afde
mov al, byte [ecx - 1]
cmp al, bl
je 0x42afd4
cmp al, 0xff
je 0x42afd4
dec al
mov byte [ecx - 1], al
jmp 0x42afde
dec ecx
push ecx
call fcn.0045da32
add esp, 4
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret