Function at 0x44d570
Capabilities:
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov esi, eax
mov eax, dword [esi + 8]
push ebx
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov edi, eax
cmp edi, ebx
jne 0x44d5cc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str._WinHttpReceiveResponse_Error___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.WinHttpReceiveResponse_Error___d__n
push 2
call fcn.00448d80
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 8]
push ebx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0x20000013
push eax
mov dword [esp + 0x28], 4
call ebx
mov edi, eax
test edi, edi
jne 0x44d62a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str._WinHttpQueryHeaders_Error___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.WinHttpQueryHeaders_Error___d__n
push 2
call fcn.00448d80
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0xc]
cmp eax, 0x12d
je 0x44d6a4
cmp eax, 0x12e
je 0x44d6a4
push eax
push str._HTTP_STATUS_Not_Redirect___d__n
call fcn.00401010
mov ecx, dword [esp + 0x14]
push ecx
push str.HTTP_STATUS_Not_Redirect___d__n
push 2
call fcn.00448d80
add esp, 0x14
cmp dword [esp + 0xc], 0x197
jne 0x44d699
mov eax, esi
call fcn.0044d840
test eax, eax
je 0x44d699
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x44d699
push str._HTTP_STATUS_PROXY_AUTH_REQ_Retry_n
call fcn.00401010
add esp, 4
push str.HTTP_STATUS_PROXY_AUTH_REQ_Retry_n
push 2
call fcn.00448d80
add esp, 8
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
mov eax, dword [esi + 8]
push 0
lea edx, [esp + 0x14]
push edx
push edi
push 0
push 0x21
push eax
mov dword [esp + 0x28], 0x104
call ebx
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x44d6fe
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str._NOT_WINHTTP_QUERY_LOCATION___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.NOT_WINHTTP_QUERY_LOCATION___d__n
push 2
call fcn.00448d80
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push str._GetRedirectURL__s__n
call fcn.00401010
push edi
push str.GetRedirectURL__s__n
push 0
call fcn.00448d80
add esp, 0x14
mov ecx, SysReAllocString
mov eax, str.http:__www.epson.com
cmp word [eax], 0
je 0x44d7ed
add eax, 2
sub ecx, 1
jne 0x44d723
xor edx, edx
test edi, edi
je 0x44d754
mov ecx, SysReAllocString
mov eax, edi
cmp word [eax], 0
je 0x44d801
add eax, 2
sub ecx, 1
jne 0x44d742
xor eax, eax
cmp edx, eax
jne 0x44d6f3
lea eax, [edx + edx]
cmp eax, 4
mov ecx, str.http:__www.epson.com
mov edx, edi
jb 0x44d784
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x44d78c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x44d770
test eax, eax
je 0x44d819
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x44d7db
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x44d815
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x44d7db
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x44d815
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x44d7db
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x44d815
movzx ecx, byte [ecx]
movzx esi, byte [edx]
sub esi, ecx
je 0x44d815
test esi, esi
mov ebx, dword [esp + 0x14]
mov eax, 1
jg 0x44d81b
or eax, 0xffffffff
jmp 0x44d81b
test ecx, ecx
je 0x44d735
mov edx, SysReAllocString
sub edx, ecx
jmp 0x44d737
test ecx, ecx
je 0x44d754
mov eax, SysReAllocString
sub eax, ecx
jmp 0x44d756
mov ebx, dword [esp + 0x14]
xor eax, eax
test eax, eax
jne 0x44d6f3
push 0x104
xor esi, esi
push esi
push edi
call fcn.0046e670
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8