Function at 0x415810
Capabilities:
Read http header
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41978a
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x422010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x338], ecx
mov dword [ebp - 4], 4
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x338]
add ecx, 0x14
call fcn.00403c00
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x20], 0xa
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x20]
jae 0x415f23
cmp dword [ebp - 0x30], 0
je 0x4158ce
push 0
mov ecx, 0x4279d0
call fcn.00416f00
push eax
mov ecx, 0x4279d0
call fcn.00416f20
push eax
mov edx, dword [ebp - 0x30]
push edx
push 1
mov eax, dword [ebp - 0x338]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
mov dword [ebp - 0x34], eax
lea ecx, [ebp + 0x60]
call fcn.00403c80
test eax, eax
jne 0x4158e6
lea ecx, [ebp + 0x7c]
call fcn.00403c80
test eax, eax
je 0x415911
push 0
lea ecx, [ebp + 0x7c]
call fcn.00402c90
push eax
lea ecx, [ebp + 0x60]
call fcn.00402c90
push eax
push 1
push 0
mov edx, dword [ebp - 0x338]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0x5c]
cmp dword [ecx], 0
je 0x41598b
cmp dword [0x4279d0], 0
jne 0x41598b
mov edx, dword [ebp + 0x5c]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x31c], esp
lea eax, [ebp + 8]
push eax
call fcn.00403bc0
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x338]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x338]
call fcn.00415430
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
jne 0x415970
mov dword [0x4279d0], 1
jmp 0x41598b
push 0xc
mov eax, dword [ebp + 0x5c]
add eax, 0x58
push eax
push 0x26
mov ecx, dword [ebp - 0x338]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea ecx, [ebp - 0x58]
call fcn.00402be0
mov byte [ebp - 4], 5
push str.Accept:_text_html__application_xml_q0.9__application_xhtmlxml__image_png__image_jpeg__image_gif__image_x_xbitmap____q0.1_n
lea ecx, [ebp - 0x58]
call fcn.00403c20
push 0x20000000
push 0xffffffffffffffff
lea ecx, [ebp - 0x58]
call fcn.00402c90
push eax
mov eax, dword [ebp - 0x338]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov edx, dword [ebp - 0x338]
cmp dword [edx + 0x88], 0
jne 0x4159e2
push str.Accept_Encoding:__n
lea ecx, [ebp - 0x58]
call fcn.00402c70
jmp 0x4159ef
push str.Accept_Encoding:_gzip_n
lea ecx, [ebp - 0x58]
call fcn.00402c70
push 0x20000000
push 0xffffffffffffffff
lea ecx, [ebp - 0x58]
call fcn.00402c90
push eax
mov eax, dword [ebp - 0x338]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
lea ecx, [ebp + 0x40]
call fcn.00403c80
test eax, eax
jne 0x415a3f
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x338]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x34], eax
jmp 0x415bc8
lea ecx, [ebp + 0x40]
call fcn.00403c80
lea ecx, [eax + eax + 0xa]
push ecx
call fcn.0040b42a
add esp, 4
mov dword [ebp - 0x320], eax
mov edx, dword [ebp - 0x320]
mov dword [ebp - 0x98], edx
mov dword [ebp - 0xb8], 0
push 0
push 0
lea ecx, [ebp + 0x40]
call fcn.00402c90
push eax
call fcn.0040a5f7
add esp, 4
lea eax, [eax + eax + 0xa]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
push 0xffffffffffffffff
lea ecx, [ebp + 0x40]
call fcn.00402c90
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0x98]
push edx
call fcn.00404700
add esp, 4
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x2f0]
push eax
push str.Content_Length:_d
lea ecx, [ebp - 0x2ec]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0xb4]
call fcn.00402be0
mov byte [ebp - 4], 6
lea edx, [ebp + 0x24]
push edx
lea ecx, [ebp - 0xb4]
call fcn.00403c00
lea ecx, [ebp - 0xb4]
call fcn.00403c80
test eax, eax
jne 0x415b1f
push str.Content_Type:_text_xml__charsetutf_8_n
lea ecx, [ebp - 0xb4]
call fcn.00403c20
jmp 0x415b2f
push 0x41eaa0
lea ecx, [ebp - 0xb4]
call fcn.00403c20
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0xb4]
call fcn.00403c20
lea ecx, [ebp + 0x24]
call fcn.00403c80
test eax, eax
je 0x415b70
push 0x20000000
push 0xffffffffffffffff
lea ecx, [ebp - 0xb4]
call fcn.00402c90
push eax
mov ecx, dword [ebp - 0x338]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push 0
mov eax, dword [ebp - 0x2f0]
push eax
mov ecx, dword [ebp - 0x2f0]
push ecx
mov edx, dword [ebp - 0x98]
push edx
push 0
push 0
mov eax, dword [ebp - 0x338]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x324], edx
mov eax, dword [ebp - 0x324]
push eax
call fcn.0040416b
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb4]
call fcn.00402c50
cmp dword [ebp - 0x34], 0
je 0x415be3
push 0
mov ecx, dword [ebp - 0x338]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x415bff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2f8], 0
cmp dword [ebp - 0x34], 0
jne 0x415c23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x415c23
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00402c50
jmp 0x41588b
cmp dword [ebp - 0x34], 0
je 0x415c4d
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0x20000013
mov edx, dword [ebp - 0x338]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x78], 0
push 0
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push 0x1d
mov edx, dword [ebp - 0x338]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [ebp - 0x78]
add eax, 0xa
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b42a
add esp, 4
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x78]
add ecx, 0xa
push ecx
push 0
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00404790
add esp, 0xc
push 0
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
push 0
push 0x1d
mov edx, dword [ebp - 0x338]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea ecx, [ebp - 0x94]
call fcn.00402be0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x94]
call fcn.00402c70
push 0
push 0x41eaa4
lea ecx, [ebp - 0x94]
call fcn.00402cb0
cmp eax, dword [0x41fe8c]
je 0x415d1b
mov edx, dword [ebp - 0x338]
mov dword [edx + 0x84], 1
jmp 0x415d4c
lea ecx, [ebp - 0x94]
call fcn.00403c80
test eax, eax
je 0x415d3c
mov eax, dword [ebp - 0x338]
mov dword [eax + 0x84], 0
jmp 0x415d4c
mov ecx, dword [ebp - 0x338]
mov dword [ecx + 0x84], 0
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x32c], edx
mov eax, dword [ebp - 0x32c]
push eax
call fcn.0040b81b
add esp, 4
mov ecx, 0x4279d0
call fcn.00416ea0
push eax
lea ecx, [ebp - 0x74]
call fcn.00402c10
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], 0
je 0x415ebf
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x344], ecx
mov edx, dword [ebp - 0x344]
sub edx, 0xc8
mov dword [ebp - 0x344], edx
cmp dword [ebp - 0x344], 0xcf
ja case.0x415dbd.1
mov eax, dword [ebp - 0x344]
movzx ecx, byte [eax + 0x416018]
jmp dword [ecx*4 + 0x416004]
lea ecx, [ebp - 0x74]
call fcn.00403c80
test eax, eax
je 0x415dde
push 2
mov ecx, 0x4279d0
call fcn.00416ee0
jmp 0x415dea
push 1
mov ecx, 0x4279d0
call fcn.00416ee0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x38], edx
jmp 0x415ebd
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
jmp 0x415ebd
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
jmp 0x415ebd
mov ecx, 0x4279d0
call fcn.00416f20
push eax
lea ecx, [ebp - 0x314]
call fcn.00402c10
lea ecx, [ebp - 0x314]
call fcn.00403c80
test eax, eax
jne 0x415e4a
push 0xffffffffffffffff
mov ecx, 0x4279d0
call fcn.00416ee0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x38], edx
jmp 0x415eaa
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x338]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x415e81
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x338]
call fcn.00414dd0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x1c], 0x197
jne 0x415e9e
push 0xffffffffffffffff
mov ecx, 0x4279d0
call fcn.00416ee0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
jmp 0x415eaa
push 2
mov ecx, 0x4279d0
call fcn.00416ee0
lea ecx, [ebp - 0x314]
call fcn.00402c50
jmp 0x415ebd
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
jmp 0x415ee5
lea ecx, [ebp - 0x74]
call fcn.00403c80
test eax, eax
je 0x415ed9
push 0xfffffffffffffffc
mov ecx, 0x4279d0
call fcn.00416ee0
jmp 0x415ee5
push 1
mov ecx, 0x4279d0
call fcn.00416ee0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x34], 0
jne 0x415ef7
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
call fcn.00402c50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
call fcn.00402c50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00402c50
jmp 0x41588b
cmp dword [ebp - 0x34], 0
jne 0x415f9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x318], eax
mov ecx, dword [ebp - 0x318]
push ecx
push str.Error__d_has_occurred._n
call fcn.0040b53b
add esp, 8
mov dword [ebp - 0x330], 0xfffffff8
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00402c50
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x24]
call fcn.00402c50
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x40]
call fcn.00402c50
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x60]
call fcn.00402c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x7c]
call fcn.00402c50
mov eax, dword [ebp - 0x330]
jmp 0x415fe9
mov dword [ebp - 0x334], 1
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00402c50
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x24]
call fcn.00402c50
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x40]
call fcn.00402c50
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x60]
call fcn.00402c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x7c]
call fcn.00402c50
mov eax, dword [ebp - 0x334]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404197
mov esp, ebp
pop ebp
ret 0x90