Function at 0x1003d180
Capabilities:
Check http status code

Disassembly:
sub esp, 0x38
mov ecx, dword [esp + 0x40]
xor al, al
push ebx
push ebp
mov ebp, dword [esp + 0x44]
xor bl, bl
push esi
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
push edi
mov esi, dword [ebp + ecx*4 + 0x154]
lea ecx, [ecx*4 + 0x554]
mov edi, dword [ebp]
add ecx, ebp
mov dword [esp + 0x34], esi
movlpd qword [esp + 0x3c], xmm0
mov byte [esp + 0x11], bl
cmp dword [ecx], 2
mov byte [esp + 0x12], al
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], ecx
je 0x1003dbb1
mov byte [ebp + 0x266], al
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov edi, edi
cmp dword [ecx], 0
jne 0x1003d401
push dword [esp + 0x58]
push dword [esp + 0x58]
push 0x10066468
push edi
call fcn.1001c6d0
push dword [edi + 0x104]
call dword [0x1006f030]
add esp, 0x14
mov dword [edi + 0x104], 0
call fcn.10022720
mov ebx, eax
test ebx, ebx
je 0x1003da74
push dword [esp + 0x58]
push dword [esp + 0x58]
push 0x10066490
call fcn.10026e60
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x1003da6b
push 1
push ebp
push 0x10066498
push dword [esp + 0x58]
call fcn.100232c0
push ebp
mov esi, eax
call dword [0x1006f030]
add esp, 0x14
test esi, esi
jne 0x1003d3de
mov ecx, dword [esp + 0x4c]
mov edx, 0x1005f89c
push dword [esp + 0x58]
mov eax, 0x1005f8a0
mov ebp, 0x1005dbae
mov dword [esp + 0x30], ebp
cmp dword [ecx + 0x138], 1
mov cl, byte [ecx + 0x257]
cmovne eax, edx
test cl, cl
mov dword [esp + 0x3c], eax
mov edx, ebp
mov eax, 0x1005e58c
cmove eax, edx
push eax
push dword [esp + 0x5c]
mov eax, 0x1005e590
cmove eax, edx
push eax
push 0x100664a0
call fcn.10026e60
mov esi, eax
add esp, 0x14
mov dword [esp + 0x28], esi
test esi, esi
je 0x1003da6b
push str.Host:
push dword [esp + 0x50]
call fcn.10022c80
add esp, 8
test eax, eax
jne 0x1003d309
push esi
push 0x100664ac
call fcn.10026e60
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1003da44
push str.User_Agent:
push dword [esp + 0x50]
call fcn.10022c80
add esp, 8
test eax, eax
jne 0x1003d334
cmp dword [edi + 0x368], eax
je 0x1003d334
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x294]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x4c]
mov ecx, 0x1005dbae
push dword [esp + 0x2c]
mov eax, dword [eax + 0x290]
test eax, eax
cmovne ecx, eax
push ecx
push ebp
push dword [esp + 0x44]
push esi
push 0x100664b8
push ebx
call fcn.100228e0
add esp, 0x1c
mov esi, eax
test ebp, ebp
je 0x1003d377
cmp byte [ebp], 0
je 0x1003d377
push ebp
call dword [0x1006f030]
add esp, 4
push dword [esp + 0x28]
call dword [0x1006f030]
add esp, 4
test esi, esi
jne 0x1003d3ca
mov ebp, dword [esp + 0x4c]
push ebx
push 1
push ebp
call fcn.10022950
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1003d3ca
push 0x1005e33c
push ebx
call fcn.100228e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003d3ca
push dword [esp + 0x50]
push eax
lea eax, [edi + 0x870c]
push eax
push ebp
push ebx
call fcn.10022730
add esp, 0x14
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x1003d3de
push 0x100664d4
push edi
call fcn.1001c600
add esp, 8
push ebx
call fcn.10022700
add esp, 4
test esi, esi
jne 0x1003da61
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x34]
mov dword [eax], 1
push 1
push 0
push edi
call fcn.1001d6b0
add esp, 0xc
test eax, eax
jle 0x1003dbbb
cmp byte [esp + 0x5c], 0
jne 0x1003d434
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call fcn.1001bf60
add esp, 0x10
test eax, eax
je 0x1003dbb1
lea eax, [edi + 0x564]
mov dword [esp + 0x2c], 0
mov ecx, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
mov esi, eax
xor ebx, ebx
test ecx, ecx
je 0x1003d820
cmp dword [esp + 0x30], 0
jne 0x1003db61
push 1
push 0
push edi
call fcn.1001d6b0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jle 0x1003da8e
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x40]
call fcn.1001bf60
add esp, 0x10
cmp eax, 0xffffffff
je 0x1003d9ce
test eax, eax
je 0x1003d7fd
lea eax, [esp + 0x1c]
push eax
mov eax, 0x4000
sub eax, dword [esp + 0x30]
push eax
push dword [esp + 0x30]
push dword [esp + 0x40]
push ebp
call fcn.1001c7b0
add esp, 0x14
cmp eax, 0x51
je 0x1003d80e
test eax, eax
je 0x1003d4e1
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x1003d7fd
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x1003d534
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [edi + 0x140], eax
je 0x1003d519
cmp dword [edi + 0x8644], eax
je 0x1003d519
push 0x1006654c
push edi
mov byte [ebp + 0x266], 1
call fcn.1001c6d0
add esp, 8
jmp 0x1003d7fd
push 0x10066570
push edi
mov dword [esp + 0x38], 1
call fcn.1001c600
add esp, 8
jmp 0x1003d7fd
add dword [esp + 0x2c], ecx
cmp dword [esp + 0x18], 1
jle 0x1003d5ea
mov eax, dword [esp + 0x20]
lea edx, [edi + 0x564]
or eax, dword [esp + 0x24]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edx
je 0x1003d593
mov eax, ecx
mov ecx, dword [esp + 0x20]
cdq
sub ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
sbb eax, edx
mov dword [esp + 0x24], eax
test eax, eax
jg 0x1003d7fd
jl 0x1003d588
test ecx, ecx
jne 0x1003d7fd
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x1003d7fd
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push ecx
push edx
push ebp
call fcn.1003e080
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1003d5d3
push 0x10066588
push edi
call fcn.1001c6d0
add esp, 8
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [eax], 2
jmp 0x1003d7fd
push dword [esp + 0x38]
push 0x1006659c
push edi
call fcn.1001c6d0
add esp, 0xc
jmp 0x1003d7fd
xor ebp, ebp
mov dword [esp + 0x38], ebp
test ecx, ecx
jle 0x1003d7f9
mov eax, dword [esp + 0x28]
lea esp, [esp]
inc ebx
cmp byte [eax], 0xa
jne 0x1003d7e7
cmp byte [edi + 0x2d0], 0
je 0x1003d624
push dword [esp + 0x4c]
push ebx
push esi
push 1
push edi
call fcn.1001c510
add esp, 0x14
cmp byte [edi + 0x2c4], 0
mov ecx, 3
push ebx
mov eax, 2
cmovne eax, ecx
push esi
push eax
push dword [esp + 0x58]
call fcn.1001c4e0
add dword [edi + 0x8708], ebx
add esp, 0x10
add dword [edi + 0x80], ebx
test eax, eax
jne 0x1003dbce
mov al, byte [esi]
cmp al, 0xd
je 0x1003d863
cmp al, 0xa
je 0x1003d863
mov al, byte [ebx + esi]
lea ebp, [ebx + esi]
push 0x11
push esi
push str.WWW_Authenticate:
mov byte [esp + 0x1f], al
mov byte [ebp], 0
call fcn.10028320
add esp, 0xc
test eax, eax
je 0x1003d69c
mov eax, dword [edi + 0xc8]
cmp eax, 0x191
je 0x1003d6bd
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.10028320
add esp, 0xc
test eax, eax
je 0x1003d706
mov eax, dword [edi + 0xc8]
cmp eax, 0x197
jne 0x1003d706
cmp eax, 0x197
push esi
sete byte [esp + 0x40]
call fcn.10022e20
mov esi, eax
add esp, 4
test esi, esi
je 0x1003da74
push esi
push dword [esp + 0x40]
push dword [esp + 0x54]
call fcn.100230b0
push esi
mov ebx, eax
call dword [0x1006f030]
add esp, 0x10
test ebx, ebx
je 0x1003d7cf
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x38
ret
push 0xf
push esi
push str.Content_Length:
call fcn.10028320
add esp, 0xc
test eax, eax
je 0x1003d737
push 0xa
push 0
add esi, 0xf
push esi
call fcn.10048129
add esp, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jmp 0x1003d7cf
push str.close
push str.Connection:
push esi
call fcn.10022d50
add esp, 0xc
test al, al
je 0x1003d755
mov byte [esp + 0x11], 1
jmp 0x1003d7cf
push str.chunked
push str.Transfer_Encoding:
push esi
call fcn.10022d50
add esp, 0xc
test al, al
je 0x1003d78a
push 0x1006665c
push edi
call fcn.1001c6d0
push dword [esp + 0x54]
mov byte [esp + 0x1e], 1
call fcn.1003e060
add esp, 0xc
jmp 0x1003d7cf
push str.close
push str.Proxy_Connection:
push esi
call fcn.10022d50
add esp, 0xc
test al, al
je 0x1003d7a8
mov byte [esp + 0x11], 1
jmp 0x1003d7cf
lea ebx, [edi + 0xc8]
push ebx
lea eax, [esp + 0x48]
push eax
push 0x10066678
push esi
call fcn.1004796f
add esp, 0x10
cmp eax, 2
jne 0x1003d7cf
mov eax, dword [ebx]
mov dword [edi + 0x86f8], eax
mov al, byte [esp + 0x13]
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
mov byte [ebp], al
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x38]
lea esi, [eax + 1]
inc ebp
inc eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ebp
cmp ebp, ecx
jl 0x1003d600
mov ebp, dword [esp + 0x4c]
push ebp
call fcn.10025370
add esp, 4
test eax, eax
jne 0x1003da81
cmp dword [esp + 0x2c], 0x4000
mov ecx, dword [esp + 0x18]
jb 0x1003d453
cmp dword [esp + 0x30], 0
jne 0x1003db61
cmp dword [edi + 0x86f8], 0xc8
je 0x1003d9e9
push ebp
call fcn.10022ef0
add esp, 4
test eax, eax
jne 0x1003dbce
cmp byte [ebp + 0x251], al
je 0x1003d9e9
mov bl, 1
mov byte [esp + 0x11], bl
jmp 0x1003d9f1
cmp dword [edi + 0xc8], 0x197
lea eax, [edi + 0x564]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
jne 0x1003d995
cmp byte [edi + 0x864c], 0
jne 0x1003d995
mov ecx, dword [esp + 0x20]
mov eax, ecx
mov edx, dword [esp + 0x24]
or eax, edx
mov dword [esp + 0x18], 2
je 0x1003d8fc
push edx
push ecx
push 0x100665c0
push edi
call fcn.1001c6d0
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [esp + 0x20]
sub eax, ebp
cdq
sub ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
sbb eax, edx
mov dword [esp + 0x24], eax
test eax, eax
jg 0x1003d9bf
jl 0x1003d8e5
test ecx, ecx
jne 0x1003d9bf
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 0
mov dword [eax], 2
jmp 0x1003d7f9
mov al, byte [esp + 0x12]
test al, al
je 0x1003d8e5
mov eax, dword [esp + 0x1c]
sub eax, ebp
mov byte [edi + 0xfd], 1
push eax
push 0x100665e8
push edi
call fcn.1001c6d0
add esp, 0xc
cmp byte [esi + 1], 0xa
jne 0x1003d928
inc esi
inc ebp
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x20]
sub eax, ebp
push eax
lea eax, [esi + 1]
push eax
push dword [esp + 0x58]
call fcn.1003e080
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1003d974
push 0x10066588
push edi
call fcn.1001c6d0
mov eax, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x18], 0
mov dword [eax], 2
mov dword [eax], 2
jmp 0x1003d7f9
push dword [esp + 0x1c]
push 0x1006659c
push edi
call fcn.1001c6d0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [eax], 2
jmp 0x1003d7f9
xor eax, eax
cmp dword [edi + 0x86f8], 0xc8
mov dword [esp + 0x18], eax
jne 0x1003d9bf
mov eax, dword [esp + 0x1c]
sub eax, ebp
dec eax
je 0x1003d9bf
push eax
push 0x10066608
push edi
call fcn.1001c600
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [eax], 2
jmp 0x1003d7f9
push 0x1006651c
push edi
mov dword [esp + 0x38], 1
call fcn.1001c600
add esp, 8
jmp 0x1003d7fd
mov bl, byte [esp + 0x11]
test bl, bl
je 0x1003d9fe
cmp dword [edi + 0x104], 0
jne 0x1003daa9
cmp dword [edi + 0x104], 0
mov ecx, dword [esp + 0x14]
je 0x1003daca
cmp dword [ecx], 2
jne 0x1003da2e
push 0
push 0x10066688
push edi
mov dword [ecx], 0
call fcn.1001c6d0
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp dword [edi + 0x104], 0
je 0x1003daca
mov esi, dword [esp + 0x34]
jmp 0x1003d1f0
push esi
call dword [0x1006f030]
push ebx
call fcn.10022700
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
push ebx
call fcn.10022700
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x38
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x38
ret
push 0x100664f4
push edi
call fcn.1001c600
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov esi, dword [esp + 0x50]
push dword [ebp + esi*4 + 0x154]
push ebp
call fcn.1001cd40
add esp, 8
mov dword [ebp + esi*4 + 0x154], 0xffffffff
jmp 0x1003dace
mov esi, dword [esp + 0x50]
cmp dword [edi + 0xc8], 0xc8
je 0x1003db6e
test bl, bl
je 0x1003db02
cmp dword [edi + 0x104], 0
je 0x1003db02
push 0x100666a8
push edi
mov byte [ebp + 0x266], 1
call fcn.1001c6d0
add esp, 8
jmp 0x1003db3a
push dword [edi + 0x104]
call dword [0x1006f030]
mov dword [edi + 0x104], 0
mov byte [ebp + 0x251], 1
push dword [ebp + esi*4 + 0x154]
push ebp
call fcn.1001cd40
add esp, 0xc
mov dword [ebp + esi*4 + 0x154], 0xffffffff
mov eax, dword [esp + 0x14]
mov dword [eax], 0
cmp byte [ebp + 0x266], 0
jne 0x1003dbb1
push dword [edi + 0xc8]
push 0x100666c4
push edi
call fcn.1001c600
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x38
ret
mov eax, dword [esp + 0x14]
mov dword [eax], 2
push dword [ebp + 0x290]
call dword [0x1006f030]
push 0x100666f4
mov dword [ebp + 0x290], 0
push edi
mov byte [edi + 0x8648], 1
call fcn.1001c6d0
mov byte [edi + 0xfd], 0
add esp, 0xc
mov byte [ebp + 0x260], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
push 0x100664f4
push edi
call fcn.1001c600
mov eax, 0x38
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret