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

Disassembly:
push 0xffffffffffffffff
push 0x46e46b
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.00404a20
mov edi, 0x490728
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x490728
lea ecx, [esp + 0x7c]
call fcn.004046b0
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x30]
mov dword [esp + 0xa0], ebx
call fcn.00404a20
mov edi, 0x490728
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x490728
lea ecx, [esp + 0x34]
call fcn.004046b0
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 1
mov byte [esp + 0x48], dl
call fcn.00404a20
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 2
mov byte [esp + 0x58], al
call fcn.00404a20
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x68], cl
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 3
call fcn.00404a20
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x88]
mov byte [esp + 0xa0], 4
mov byte [esp + 0x88], dl
call fcn.00404a20
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.00404a20
mov edi, 0x490728
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x490728
lea ecx, [esp + 0x1c]
call fcn.004046b0
cmp ebp, ebx
mov byte [esp + 0x9c], 6
jle 0x42d1c7
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 0x42ce0b
mov eax, dword [esp + 0x3c]
cmp byte [esp + 0x13], bl
jne 0x42ce4e
add eax, edi
cmp eax, ebp
jge 0x42d1b3
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.0043e300
add esp, 0xc
test eax, eax
jne 0x42d1af
mov edi, dword [esp + 0x24]
mov byte [esp + 0x13], 1
mov cl, byte [edi]
push ecx
call fcn.0042cc40
add esp, 4
test al, al
je 0x42d1b3
mov dl, byte [edi]
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], dl
mov eax, dword [esp + 0x40]
push eax
push 1
call fcn.00431730
cmp byte [edi], 0xa
jne 0x42d1b3
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.00404910
mov edx, dword [0x4717b8]
cmp eax, edx
je 0x42cfb5
mov edi, 0x489930
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x489930
lea ecx, [esp + 0x20]
call fcn.00422c60
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.00404910
mov edi, eax
mov eax, dword [esp + 0x1c]
cmp eax, esi
jae 0x42cefc
call fcn.0044c6c9
lea ecx, [esp + 0x14]
call fcn.00405ce0
mov eax, dword [esp + 0x1c]
mov ecx, eax
sub ecx, esi
cmp ecx, edi
jae 0x42cf13
mov edi, ecx
cmp edi, ebx
jbe 0x42cf50
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.0043c3a0
mov esi, dword [esp + 0x28]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x14]
push ebx
push esi
call fcn.00405bc0
test al, al
je 0x42cf50
push esi
lea ecx, [esp + 0x18]
call fcn.00405ba0
lea ecx, [esp + 0x14]
mov esi, 4
call fcn.00405ce0
mov eax, dword [esp + 0x1c]
cmp eax, esi
jae 0x42cf6c
mov esi, eax
cmp esi, ebx
jbe 0x42cf9f
mov ecx, dword [esp + 0x18]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
call fcn.0043c3a0
mov edi, dword [esp + 0x28]
add esp, 0xc
sub edi, esi
lea ecx, [esp + 0x14]
push ebx
push edi
call fcn.00405bc0
test al, al
je 0x42cf9f
push edi
lea ecx, [esp + 0x18]
call fcn.00405ba0
mov ecx, dword [0x4717b8]
lea edx, [esp + 0x14]
push ecx
push ebx
push edx
lea ecx, [esp + 0x50]
call fcn.004044b0
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.00404910
cmp eax, dword [0x4717b8]
je 0x42d0a3
mov edi, dword [esp + 0x1c]
lea esi, [edi - 2]
cmp edi, esi
jae 0x42cff0
call fcn.0044c6c9
lea ecx, [esp + 0x14]
call fcn.00405ce0
mov eax, dword [esp + 0x1c]
sub eax, esi
cmp eax, edi
jae 0x42d005
mov edi, eax
cmp edi, ebx
jbe 0x42d03e
mov ecx, dword [esp + 0x18]
sub eax, edi
add ecx, esi
push eax
lea edx, [edi + ecx]
push edx
push ecx
call fcn.0043c3a0
mov esi, dword [esp + 0x28]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x14]
push ebx
push esi
call fcn.00405bc0
test al, al
je 0x42d03e
push esi
lea ecx, [esp + 0x18]
call fcn.00405ba0
lea ecx, [esp + 0x14]
mov esi, 9
call fcn.00405ce0
mov eax, dword [esp + 0x1c]
cmp eax, esi
jae 0x42d05a
mov esi, eax
cmp esi, ebx
jbe 0x42d08d
mov ecx, dword [esp + 0x18]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
call fcn.0043c3a0
mov edi, dword [esp + 0x28]
add esp, 0xc
sub edi, esi
lea ecx, [esp + 0x14]
push ebx
push edi
call fcn.00405bc0
test al, al
je 0x42d08d
push edi
lea ecx, [esp + 0x18]
call fcn.00405ba0
mov edx, dword [0x4717b8]
lea eax, [esp + 0x14]
push edx
push ebx
push eax
lea ecx, [esp + 0x70]
call fcn.004044b0
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.00404910
cmp eax, dword [0x4717b8]
je 0x42d191
mov edi, dword [esp + 0x1c]
lea esi, [edi - 2]
cmp edi, esi
jae 0x42d0de
call fcn.0044c6c9
lea ecx, [esp + 0x14]
call fcn.00405ce0
mov eax, dword [esp + 0x1c]
sub eax, esi
cmp eax, edi
jae 0x42d0f3
mov edi, eax
cmp edi, ebx
jbe 0x42d12c
mov ecx, dword [esp + 0x18]
sub eax, edi
add ecx, esi
push eax
lea edx, [edi + ecx]
push edx
push ecx
call fcn.0043c3a0
mov esi, dword [esp + 0x28]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x14]
push ebx
push esi
call fcn.00405bc0
test al, al
je 0x42d12c
push esi
lea ecx, [esp + 0x18]
call fcn.00405ba0
lea ecx, [esp + 0x14]
mov esi, 6
call fcn.00405ce0
mov eax, dword [esp + 0x1c]
cmp eax, esi
jae 0x42d148
mov esi, eax
cmp esi, ebx
jbe 0x42d17b
mov ecx, dword [esp + 0x18]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
call fcn.0043c3a0
mov edi, dword [esp + 0x28]
add esp, 0xc
sub edi, esi
lea ecx, [esp + 0x14]
push ebx
push edi
call fcn.00405bc0
test al, al
je 0x42d17b
push edi
lea ecx, [esp + 0x18]
call fcn.00405ba0
mov edx, dword [0x4717b8]
lea eax, [esp + 0x14]
push edx
push ebx
push eax
lea ecx, [esp + 0x60]
call fcn.004044b0
mov edi, 0x490728
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x490728
lea ecx, [esp + 0x1c]
call fcn.004046b0
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 0x42ce07
mov ecx, dword [esp + 0x5c]
cmp ecx, ebx
je 0x42d308
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x42d308
lea edi, [eax + ecx + 0x80]
push edi
call fcn.0045fe04
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x42d288
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 5
call fcn.00404a20
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0xa0], 4
call fcn.00404a20
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 3
call fcn.00404a20
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 2
call fcn.00404a20
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 1
call fcn.00404a20
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0xa0], bl
call fcn.00404a20
push 1
lea ecx, [esp + 0x78]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00404a20
jmp 0x42d3be
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, 0x4717b4
cmp eax, ebx
je 0x42d2ab
mov ecx, eax
mov eax, dword [esp + 0x58]
cmp eax, ebx
jne 0x42d2b8
mov eax, 0x4717b4
push ecx
push eax
push str.http:__
push str._s_s_s
push esi
call fcn.0043d08e
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.004046b0
mov eax, dword [0x4717b8]
lea ecx, [esp + 0x64]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0xb8]
call fcn.004044b0
push esi
call fcn.0045fe2d
add esp, 4
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 5
call fcn.00404a20
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0xa0], 4
call fcn.00404a20
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 3
call fcn.00404a20
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 2
call fcn.00404a20
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 1
call fcn.00404a20
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x42d38e
mov al, byte [ecx - 1]
cmp al, bl
je 0x42d384
cmp al, 0xff
je 0x42d384
dec al
mov byte [ecx - 1], al
jmp 0x42d38e
dec ecx
push ecx
call fcn.0045fe2d
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 0x42d3be
mov al, byte [ecx - 1]
cmp al, bl
je 0x42d3b4
cmp al, 0xff
je 0x42d3b4
dec al
mov byte [ecx - 1], al
jmp 0x42d3be
dec ecx
push ecx
call fcn.0045fe2d
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