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

Disassembly:
push 0xffffffffffffffff
push 0x46ebdb
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.00404d20
mov edi, 0x49186c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x49186c
lea ecx, [esp + 0x7c]
call fcn.004049b0
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x30]
mov dword [esp + 0xa0], ebx
call fcn.00404d20
mov edi, 0x49186c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x49186c
lea ecx, [esp + 0x34]
call fcn.004049b0
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 1
mov byte [esp + 0x48], dl
call fcn.00404d20
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 2
mov byte [esp + 0x58], al
call fcn.00404d20
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x68], cl
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 3
call fcn.00404d20
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x88]
mov byte [esp + 0xa0], 4
mov byte [esp + 0x88], dl
call fcn.00404d20
mov eax, dword [esp + 0xa4]
mov byte [esp + 0x9c], 5
mov cx, word [eax + 0x10]
lea esi, [eax + 0xe]
push ecx
call dword [0x47266c]
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.00404d20
mov edi, 0x49186c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x49186c
lea ecx, [esp + 0x1c]
call fcn.004049b0
cmp ebp, ebx
mov byte [esp + 0x9c], 6
jle 0x42d757
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 0x42d39b
mov eax, dword [esp + 0x3c]
cmp byte [esp + 0x13], bl
jne 0x42d3de
add eax, edi
cmp eax, ebp
jge 0x42d743
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.0043ea20
add esp, 0xc
test eax, eax
jne 0x42d73f
mov edi, dword [esp + 0x24]
mov byte [esp + 0x13], 1
mov cl, byte [edi]
push ecx
call fcn.0042d1d0
add esp, 4
test al, al
je 0x42d743
mov dl, byte [edi]
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], dl
mov eax, dword [esp + 0x40]
push eax
push 1
call fcn.00431e40
cmp byte [edi], 0xa
jne 0x42d743
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.00404c10
mov edx, dword [0x4727b8]
cmp eax, edx
je 0x42d545
mov edi, 0x48a948
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x48a948
lea ecx, [esp + 0x20]
call fcn.004230b0
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.00404c10
mov edi, eax
mov eax, dword [esp + 0x1c]
cmp eax, esi
jae 0x42d48c
call fcn.0044cde9
lea ecx, [esp + 0x14]
call fcn.00406310
mov eax, dword [esp + 0x1c]
mov ecx, eax
sub ecx, esi
cmp ecx, edi
jae 0x42d4a3
mov edi, ecx
cmp edi, ebx
jbe 0x42d4e0
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.0043cac0
mov esi, dword [esp + 0x28]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x14]
push ebx
push esi
call fcn.004061f0
test al, al
je 0x42d4e0
push esi
lea ecx, [esp + 0x18]
call fcn.004061d0
lea ecx, [esp + 0x14]
mov esi, 4
call fcn.00406310
mov eax, dword [esp + 0x1c]
cmp eax, esi
jae 0x42d4fc
mov esi, eax
cmp esi, ebx
jbe 0x42d52f
mov ecx, dword [esp + 0x18]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
call fcn.0043cac0
mov edi, dword [esp + 0x28]
add esp, 0xc
sub edi, esi
lea ecx, [esp + 0x14]
push ebx
push edi
call fcn.004061f0
test al, al
je 0x42d52f
push edi
lea ecx, [esp + 0x18]
call fcn.004061d0
mov ecx, dword [0x4727b8]
lea edx, [esp + 0x14]
push ecx
push ebx
push edx
lea ecx, [esp + 0x50]
call fcn.004047b0
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.00404c10
cmp eax, dword [0x4727b8]
je 0x42d633
mov edi, dword [esp + 0x1c]
lea esi, [edi - 2]
cmp edi, esi
jae 0x42d580
call fcn.0044cde9
lea ecx, [esp + 0x14]
call fcn.00406310
mov eax, dword [esp + 0x1c]
sub eax, esi
cmp eax, edi
jae 0x42d595
mov edi, eax
cmp edi, ebx
jbe 0x42d5ce
mov ecx, dword [esp + 0x18]
sub eax, edi
add ecx, esi
push eax
lea edx, [edi + ecx]
push edx
push ecx
call fcn.0043cac0
mov esi, dword [esp + 0x28]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x14]
push ebx
push esi
call fcn.004061f0
test al, al
je 0x42d5ce
push esi
lea ecx, [esp + 0x18]
call fcn.004061d0
lea ecx, [esp + 0x14]
mov esi, 9
call fcn.00406310
mov eax, dword [esp + 0x1c]
cmp eax, esi
jae 0x42d5ea
mov esi, eax
cmp esi, ebx
jbe 0x42d61d
mov ecx, dword [esp + 0x18]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
call fcn.0043cac0
mov edi, dword [esp + 0x28]
add esp, 0xc
sub edi, esi
lea ecx, [esp + 0x14]
push ebx
push edi
call fcn.004061f0
test al, al
je 0x42d61d
push edi
lea ecx, [esp + 0x18]
call fcn.004061d0
mov edx, dword [0x4727b8]
lea eax, [esp + 0x14]
push edx
push ebx
push eax
lea ecx, [esp + 0x70]
call fcn.004047b0
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.00404c10
cmp eax, dword [0x4727b8]
je 0x42d721
mov edi, dword [esp + 0x1c]
lea esi, [edi - 2]
cmp edi, esi
jae 0x42d66e
call fcn.0044cde9
lea ecx, [esp + 0x14]
call fcn.00406310
mov eax, dword [esp + 0x1c]
sub eax, esi
cmp eax, edi
jae 0x42d683
mov edi, eax
cmp edi, ebx
jbe 0x42d6bc
mov ecx, dword [esp + 0x18]
sub eax, edi
add ecx, esi
push eax
lea edx, [edi + ecx]
push edx
push ecx
call fcn.0043cac0
mov esi, dword [esp + 0x28]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x14]
push ebx
push esi
call fcn.004061f0
test al, al
je 0x42d6bc
push esi
lea ecx, [esp + 0x18]
call fcn.004061d0
lea ecx, [esp + 0x14]
mov esi, 6
call fcn.00406310
mov eax, dword [esp + 0x1c]
cmp eax, esi
jae 0x42d6d8
mov esi, eax
cmp esi, ebx
jbe 0x42d70b
mov ecx, dword [esp + 0x18]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
call fcn.0043cac0
mov edi, dword [esp + 0x28]
add esp, 0xc
sub edi, esi
lea ecx, [esp + 0x14]
push ebx
push edi
call fcn.004061f0
test al, al
je 0x42d70b
push edi
lea ecx, [esp + 0x18]
call fcn.004061d0
mov edx, dword [0x4727b8]
lea eax, [esp + 0x14]
push edx
push ebx
push eax
lea ecx, [esp + 0x60]
call fcn.004047b0
mov edi, 0x49186c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x49186c
lea ecx, [esp + 0x1c]
call fcn.004049b0
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 0x42d397
mov ecx, dword [esp + 0x5c]
cmp ecx, ebx
je 0x42d898
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x42d898
lea edi, [eax + ecx + 0x80]
push edi
call fcn.00460529
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x42d818
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 5
call fcn.00404d20
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0xa0], 4
call fcn.00404d20
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 3
call fcn.00404d20
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 2
call fcn.00404d20
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 1
call fcn.00404d20
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0xa0], bl
call fcn.00404d20
push 1
lea ecx, [esp + 0x78]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00404d20
jmp 0x42d94e
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, 0x4727b4
cmp eax, ebx
je 0x42d83b
mov ecx, eax
mov eax, dword [esp + 0x58]
cmp eax, ebx
jne 0x42d848
mov eax, 0x4727b4
push ecx
push eax
push str.http:__
push str._s_s_s
push esi
call fcn.0043d7ae
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.004049b0
mov eax, dword [0x4727b8]
lea ecx, [esp + 0x64]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0xb8]
call fcn.004047b0
push esi
call fcn.00460552
add esp, 4
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 5
call fcn.00404d20
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0xa0], 4
call fcn.00404d20
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 3
call fcn.00404d20
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 2
call fcn.00404d20
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 1
call fcn.00404d20
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x42d91e
mov al, byte [ecx - 1]
cmp al, bl
je 0x42d914
cmp al, 0xff
je 0x42d914
dec al
mov byte [ecx - 1], al
jmp 0x42d91e
dec ecx
push ecx
call fcn.00460552
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 0x42d94e
mov al, byte [ecx - 1]
cmp al, bl
je 0x42d944
cmp al, 0xff
je 0x42d944
dec al
mov byte [ecx - 1], al
jmp 0x42d94e
dec ecx
push ecx
call fcn.00460552
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