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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d960
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x43d210]
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.00403d70
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 0x41882e
cmp dword [ebp - 0x30], 0
je 0x4181be
push 0
mov ecx, 0x440b88
call fcn.0041a330
push eax
mov ecx, 0x440b88
call fcn.0041a350
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.00401690
test eax, eax
jne 0x4181d6
lea ecx, [ebp + 0x7c]
call fcn.00401690
test eax, eax
je 0x418201
push 0
lea ecx, [ebp + 0x7c]
call fcn.00403590
push eax
lea ecx, [ebp + 0x60]
call fcn.00403590
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 0x41827b
cmp dword [0x440b88], 0
jne 0x41827b
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.00403d30
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x338]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x338]
call fcn.00417c00
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
jne 0x418260
mov dword [0x440b88], 1
jmp 0x41827b
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 - 0x54]
call fcn.00403540
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 - 0x54]
call fcn.00403d90
push 0x20000000
push 0xffffffffffffffff
lea ecx, [ebp - 0x54]
call fcn.00403590
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 0x4182d2
push str.Accept_Encoding:__n
lea ecx, [ebp - 0x54]
call fcn.00403570
jmp 0x4182df
push str.Accept_Encoding:_gzip_n
lea ecx, [ebp - 0x54]
call fcn.00403570
push 0x20000000
push 0xffffffffffffffff
lea ecx, [ebp - 0x54]
call fcn.00403590
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.00401690
test eax, eax
jne 0x41832f
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 0x4184a9
lea ecx, [ebp + 0x40]
call fcn.00401690
lea ecx, [eax + eax + 0xa]
push ecx
call fcn.00405b15
add esp, 4
mov dword [ebp - 0x320], eax
mov edx, dword [ebp - 0x320]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x98], 0
push 0
push 0
lea ecx, [ebp + 0x40]
call fcn.00403590
push eax
call fcn.00405b75
add esp, 4
lea eax, [eax + eax + 0xa]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
push 0xffffffffffffffff
lea ecx, [ebp + 0x40]
call fcn.00403590
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x78]
push edx
call fcn.00404810
add esp, 4
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x2d0]
push eax
push str.Content_Length:_d
lea ecx, [ebp - 0x2cc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x94]
call fcn.00403540
mov byte [ebp - 4], 6
lea edx, [ebp + 0x24]
push edx
lea ecx, [ebp - 0x94]
call fcn.00403d70
lea ecx, [ebp - 0x94]
call fcn.00401690
test eax, eax
jne 0x418406
push str.Content_Type:_text_xml__charsetutf_8_n
lea ecx, [ebp - 0x94]
call fcn.00403d90
jmp 0x418416
push 0x434060
lea ecx, [ebp - 0x94]
call fcn.00403d90
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x94]
call fcn.00403d90
lea ecx, [ebp + 0x24]
call fcn.00401690
test eax, eax
je 0x418457
push 0x20000000
push 0xffffffffffffffff
lea ecx, [ebp - 0x94]
call fcn.00403590
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 - 0x2d0]
push eax
mov ecx, dword [ebp - 0x2d0]
push ecx
mov edx, dword [ebp - 0x78]
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 - 0x78]
mov dword [ebp - 0x324], edx
mov eax, dword [ebp - 0x324]
push eax
call fcn.00404808
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
call fcn.00401280
cmp dword [ebp - 0x34], 0
je 0x4184c4
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 0x4184e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2d8], 0
cmp dword [ebp - 0x34], 0
jne 0x418504
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x418504
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.00401280
jmp 0x41817b
cmp dword [ebp - 0x34], 0
je 0x41852e
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 - 0x74], 0
push 0
lea ecx, [ebp - 0x74]
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]
cmp dword [ebp - 0x74], 0
je 0x41866f
mov eax, dword [ebp - 0x74]
add eax, 0xa
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405b15
add esp, 4
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x2dc], eax
mov ecx, dword [ebp - 0x74]
add ecx, 0xa
push ecx
push 0
mov edx, dword [ebp - 0x2dc]
push edx
call fcn.00405920
add esp, 0xc
push 0
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x2dc]
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 - 0x2f8]
call fcn.00403540
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2dc]
push ecx
lea ecx, [ebp - 0x2f8]
call fcn.00403570
push 0
push 0x434064
lea ecx, [ebp - 0x2f8]
call fcn.004035b0
cmp eax, dword [0x43a3e0]
je 0x418612
mov edx, dword [ebp - 0x338]
mov dword [edx + 0x84], 1
jmp 0x418643
lea ecx, [ebp - 0x2f8]
call fcn.00401690
test eax, eax
je 0x418633
mov eax, dword [ebp - 0x338]
mov dword [eax + 0x84], 0
jmp 0x418643
mov ecx, dword [ebp - 0x338]
mov dword [ecx + 0x84], 0
mov edx, dword [ebp - 0x2dc]
mov dword [ebp - 0x32c], edx
mov eax, dword [ebp - 0x32c]
push eax
call fcn.00406736
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2f8]
call fcn.00401280
jmp 0x41867f
mov ecx, dword [ebp - 0x338]
mov dword [ecx + 0x84], 0
mov ecx, 0x440b88
call fcn.0041a310
push eax
lea ecx, [ebp - 0x70]
call fcn.00401240
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], 0
je 0x4187d9
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x344], edx
mov eax, dword [ebp - 0x344]
sub eax, 0xc8
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0xcf
ja case.0x4186d7.1
mov ecx, dword [ebp - 0x344]
movzx edx, byte [ecx + 0x418924]
jmp dword [edx*4 + 0x418910]
lea ecx, [ebp - 0x70]
call fcn.00401690
test eax, eax
je 0x4186f8
push 2
mov ecx, 0x440b88
call fcn.0041a2f0
jmp 0x418704
push 1
mov ecx, 0x440b88
call fcn.0041a2f0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
jmp 0x4187d7
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
jmp 0x4187d7
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
jmp 0x4187d7
mov ecx, 0x440b88
call fcn.0041a350
push eax
lea ecx, [ebp - 0x314]
call fcn.00401240
lea ecx, [ebp - 0x314]
call fcn.00401690
test eax, eax
jne 0x418764
push 0xffffffffffffffff
mov ecx, 0x440b88
call fcn.0041a2f0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
jmp 0x4187c4
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x338]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x41879b
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x338]
call fcn.004175a0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x1c], 0x197
jne 0x4187b8
push 0xffffffffffffffff
mov ecx, 0x440b88
call fcn.0041a2f0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
jmp 0x4187c4
push 2
mov ecx, 0x440b88
call fcn.0041a2f0
lea ecx, [ebp - 0x314]
call fcn.00401280
jmp 0x4187d7
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x38], edx
jmp 0x4187ff
lea ecx, [ebp - 0x70]
call fcn.00401690
test eax, eax
je 0x4187f3
push 0xfffffffffffffffc
mov ecx, 0x440b88
call fcn.0041a2f0
jmp 0x4187ff
push 1
mov ecx, 0x440b88
call fcn.0041a2f0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x34], 0
jne 0x418811
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00401280
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.00401280
jmp 0x41817b
cmp dword [ebp - 0x34], 0
jne 0x4188a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x318], eax
mov edx, dword [ebp - 0x318]
push edx
push str.Error__d_has_occurred._n
call fcn.0040673b
add esp, 8
mov dword [ebp - 0x330], 0xfffffff8
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00401280
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x24]
call fcn.00401280
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x40]
call fcn.00401280
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x60]
call fcn.00401280
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x7c]
call fcn.00401280
mov eax, dword [ebp - 0x330]
jmp 0x4188f4
mov dword [ebp - 0x334], 1
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00401280
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x24]
call fcn.00401280
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x40]
call fcn.00401280
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x60]
call fcn.00401280
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x7c]
call fcn.00401280
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.004042ce
mov esp, ebp
pop ebp
ret 0x90