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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4197aa
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 0x415f5e
cmp dword [ebp - 0x30], 0
je 0x4158ee
push 0
mov ecx, 0x427bd0
call fcn.00416f40
push eax
mov ecx, 0x427bd0
call fcn.00416f60
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 0x415906
lea ecx, [ebp + 0x7c]
call fcn.00403c80
test eax, eax
je 0x415931
push 0
lea ecx, [ebp + 0x7c]
call fcn.00402da0
push eax
lea ecx, [ebp + 0x60]
call fcn.00402da0
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 0x4159ab
cmp dword [0x427bd0], 0
jne 0x4159ab
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.00415450
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
jne 0x415990
mov dword [0x427bd0], 1
jmp 0x4159ab
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.00401090
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.00403c20
push 0x20000000
push 0xffffffffffffffff
lea ecx, [ebp - 0x54]
call fcn.00402da0
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 0x415a02
push str.Accept_Encoding:__n
lea ecx, [ebp - 0x54]
call fcn.00402d80
jmp 0x415a0f
push str.Accept_Encoding:_gzip_n
lea ecx, [ebp - 0x54]
call fcn.00402d80
push 0x20000000
push 0xffffffffffffffff
lea ecx, [ebp - 0x54]
call fcn.00402da0
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 0x415a5f
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 0x415bd9
lea ecx, [ebp + 0x40]
call fcn.00403c80
lea ecx, [eax + eax + 0xa]
push ecx
call fcn.0040b43f
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.00402da0
push eax
call fcn.0040a687
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.00402da0
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.00404700
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.00401090
mov byte [ebp - 4], 6
lea edx, [ebp + 0x24]
push edx
lea ecx, [ebp - 0x94]
call fcn.00403c00
lea ecx, [ebp - 0x94]
call fcn.00403c80
test eax, eax
jne 0x415b36
push str.Content_Type:_text_xml__charsetutf_8_n
lea ecx, [ebp - 0x94]
call fcn.00403c20
jmp 0x415b46
push 0x41eaa0
lea ecx, [ebp - 0x94]
call fcn.00403c20
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x94]
call fcn.00403c20
lea ecx, [ebp + 0x24]
call fcn.00403c80
test eax, eax
je 0x415b87
push 0x20000000
push 0xffffffffffffffff
lea ecx, [ebp - 0x94]
call fcn.00402da0
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.0040416b
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
call fcn.004010c0
cmp dword [ebp - 0x34], 0
je 0x415bf4
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 0x415c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2d8], 0
cmp dword [ebp - 0x34], 0
jne 0x415c34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x415c34
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.004010c0
jmp 0x4158ab
cmp dword [ebp - 0x34], 0
je 0x415c5e
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 0x415d9f
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.0040b43f
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.00404790
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.00401090
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2dc]
push ecx
lea ecx, [ebp - 0x2f8]
call fcn.00402d80
push 0
push 0x41eaa4
lea ecx, [ebp - 0x2f8]
call fcn.00402dc0
cmp eax, dword [0x41fea0]
je 0x415d42
mov edx, dword [ebp - 0x338]
mov dword [edx + 0x84], 1
jmp 0x415d73
lea ecx, [ebp - 0x2f8]
call fcn.00403c80
test eax, eax
je 0x415d63
mov eax, dword [ebp - 0x338]
mov dword [eax + 0x84], 0
jmp 0x415d73
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.0040b83b
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2f8]
call fcn.004010c0
jmp 0x415daf
mov ecx, dword [ebp - 0x338]
mov dword [ecx + 0x84], 0
mov ecx, 0x427bd0
call fcn.00416ee0
push eax
lea ecx, [ebp - 0x70]
call fcn.00402d40
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], 0
je 0x415f09
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.0x415e07.1
mov ecx, dword [ebp - 0x344]
movzx edx, byte [ecx + 0x416054]
jmp dword [edx*4 + 0x416040]
lea ecx, [ebp - 0x70]
call fcn.00403c80
test eax, eax
je 0x415e28
push 2
mov ecx, 0x427bd0
call fcn.00416f20
jmp 0x415e34
push 1
mov ecx, 0x427bd0
call fcn.00416f20
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
jmp 0x415f07
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
jmp 0x415f07
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
jmp 0x415f07
mov ecx, 0x427bd0
call fcn.00416f60
push eax
lea ecx, [ebp - 0x314]
call fcn.00402d40
lea ecx, [ebp - 0x314]
call fcn.00403c80
test eax, eax
jne 0x415e94
push 0xffffffffffffffff
mov ecx, 0x427bd0
call fcn.00416f20
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
jmp 0x415ef4
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 0x415ecb
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x338]
call fcn.00414df0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x1c], 0x197
jne 0x415ee8
push 0xffffffffffffffff
mov ecx, 0x427bd0
call fcn.00416f20
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
jmp 0x415ef4
push 2
mov ecx, 0x427bd0
call fcn.00416f20
lea ecx, [ebp - 0x314]
call fcn.004010c0
jmp 0x415f07
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x38], edx
jmp 0x415f2f
lea ecx, [ebp - 0x70]
call fcn.00403c80
test eax, eax
je 0x415f23
push 0xfffffffffffffffc
mov ecx, 0x427bd0
call fcn.00416f20
jmp 0x415f2f
push 1
mov ecx, 0x427bd0
call fcn.00416f20
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x34], 0
jne 0x415f41
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.004010c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.004010c0
jmp 0x4158ab
cmp dword [ebp - 0x34], 0
jne 0x415fd5
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.0040b55b
add esp, 8
mov dword [ebp - 0x330], 0xfffffff8
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.004010c0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x24]
call fcn.004010c0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x40]
call fcn.004010c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x60]
call fcn.004010c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x7c]
call fcn.004010c0
mov eax, dword [ebp - 0x330]
jmp 0x416024
mov dword [ebp - 0x334], 1
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.004010c0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x24]
call fcn.004010c0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x40]
call fcn.004010c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x60]
call fcn.004010c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x7c]
call fcn.004010c0
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