Function at 0x431cd0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5482fe
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x595978]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push esi
lea ecx, [ebp - 0xac]
push ecx
push esi
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xb0], eax
mov eax, dword [eax]
push 0x16
push eax
mov dword [ebp - 0xac], esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, eax
cmp edi, 0x7a
jne 0x431d51
mov byte [ebp - 0x9d], 1
cmp dword [ebp - 0xac], esi
jne 0x431d58
mov byte [ebp - 0x9d], 0
call ebx
cmp byte [ebp - 0x9d], 0
mov dword [ebp - 0xa8], eax
jne 0x431e7d
lea edx, [ebp - 0x234]
push edx
call fcn.0040a0e0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xac]
push eax
push str.._Last_win_error
push 0xab
push str._at_line
push str._http_client.cpp_
push str._at_file
push str.le__122L__size
push str.._Failed_expression_
push ecx
push str.__size
push edi
lea edx, [ebp - 0x234]
push str.Failed_to_read_headers_from_http_response._Last_error
push edx
call fcn.00415b80
add esp, 8
push eax
call fcn.00409730
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409730
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409560
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409730
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x234]
call fcn.0040a180
mov ecx, eax
lea ebx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004045b0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x431e4a
mov eax, dword [eax]
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xa4], eax
call fcn.0049ce20
push 0x58c098
lea edx, [ebp - 0xd4]
push edx
mov dword [ebp - 0xd4], vtable.std::runtime_error.0
call fcn.004a60bb
mov al, byte [ebp - 0xac]
not al
and al, 1
mov byte [ebp - 0x9d], al
call ebx
cmp byte [ebp - 0x9d], 0
mov edi, eax
jne 0x431f8e
lea eax, [ebp - 0x19c]
push eax
call fcn.0040a0e0
push edi
push str.._Last_win_error
push 0xad
push str._at_line
push str._http_client.cpp_
push str._at_file
push str.size___2__0
push str.._Failed_expression_
lea ecx, [ebp - 0x19c]
push str.Incorrect_headers_size_returned
push ecx
mov dword [ebp - 4], 4
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409560
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409730
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x19c]
call fcn.0040a180
mov ecx, eax
lea ebx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004045b0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x431f5b
mov edx, dword [eax]
mov dword [ebp - 0xa4], edx
jmp 0x431f61
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0049ce20
push 0x58c098
lea ecx, [ebp - 0xd4]
push ecx
mov dword [ebp - 0xd4], vtable.std::runtime_error.0
call fcn.004a60bb
mov edi, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
shr edi, 1
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xdc], esi
add edi, 2
push edx
lea esi, [ebp - 0xe4]
call fcn.00434530
push 0
mov dword [ebp - 4], 7
mov esi, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax]
lea ecx, [ebp - 0xac]
push ecx
push esi
push 0
push 0x16
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov edi, eax
call ebx
mov ebx, eax
test edi, edi
jne 0x4320e8
lea edx, [ebp - 0x19c]
push edx
call fcn.0040a0e0
push ebx
push str.._Last_win_error
push 0xbd
push str._at_line
push str._http_client.cpp_
push str._at_file
push str.WinHttpQueryHeaders___request.get____22__0__raw_headers_0___size__0__
push str.._Failed_expression_
lea eax, [ebp - 0x19c]
push str.Failed_to_read_http_headers
push eax
mov byte [ebp - 4], 8
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409560
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409730
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x19c]
call fcn.0040a180
mov ecx, eax
lea ebx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.004045b0
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x4320b5
mov ecx, dword [eax]
mov dword [ebp - 0xa4], ecx
jmp 0x4320bb
mov dword [ebp - 0xa4], eax
lea edx, [ebp - 0xa4]
push edx
lea ecx, [ebp - 0xd4]
call fcn.0049ce20
push 0x58c098
lea eax, [ebp - 0xd4]
push eax
mov dword [ebp - 0xd4], vtable.std::runtime_error.0
call fcn.004a60bb
mov eax, dword [ebp - 0xe0]
cmp esi, eax
je 0x43211a
cmp word [eax - 2], 0
jne 0x43211a
sub eax, esi
sar eax, 1
dec eax
push eax
lea ecx, [ebp - 0xe4]
call fcn.00430280
mov esi, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xe0]
cmp esi, eax
jne 0x4320f2
xor eax, eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
push eax
sub esp, 0x14
mov byte [ebp - 4], 0xb
mov eax, esp
mov dword [ebp - 0xb4], esp
call fcn.00434610
lea ecx, [ebp - 0xe4]
push ecx
lea edx, [ebp - 0xc4]
push edx
call fcn.00434640
add esp, 0x20
lea esi, [ebp - 0x104]
call fcn.0040efb0
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0xc4]
mov dword [ebp - 0xa4], esi
cmp esi, dword [ebp - 0xc0]
je 0x4323b6
push 1
push 0x57b158
push esi
call fcn.0040da70
mov edi, eax
cmp edi, 0xffffffff
je 0x4323a1
call fcn.004961f8
mov dword [ebp - 0xa8], eax
call fcn.00495fb7
push 0
lea ecx, [ebp - 0xf0]
mov ebx, eax
call fcn.00495eec
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4321c3
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0xf0]
call fcn.00495f14
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.00409fe0
push eax
lea ecx, [ebp - 0xa8]
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
call fcn.004346e0
add esp, 4
mov ebx, eax
mov byte [ebp - 4], 0xf
call fcn.004961f8
mov dword [ebp - 0xb0], eax
call fcn.00495fb7
push 0
lea ecx, [ebp - 0xec]
mov esi, eax
call fcn.00495eec
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x43222a
inc eax
mov dword [esi + 4], eax
lea ecx, [ebp - 0xec]
call fcn.00495f14
mov byte [ebp - 4], 0x10
call fcn.004961f8
mov dword [ebp - 0xc8], eax
call fcn.00495fb7
push 0
lea ecx, [ebp - 0xb4]
mov esi, eax
call fcn.00495eec
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x432264
inc eax
mov dword [esi + 4], eax
lea ecx, [ebp - 0xb4]
call fcn.00495f14
push edi
push 0
lea edx, [ebp - 0x9c]
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0xa4]
push edx
call fcn.00409fe0
push eax
lea ecx, [ebp - 0xc8]
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 0x12
call fcn.004346e0
push eax
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x13
call fcn.00434720
add esp, 8
mov edx, eax
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0x14
call fcn.004342d0
push ebx
mov ecx, eax
call fcn.0040d620
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x4322e0
mov eax, dword [ebp - 0x64]
push eax
call fcn.0049cf83
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x6c], esi
jb 0x432304
mov edx, dword [ebp - 0x80]
push edx
call fcn.0049cf83
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
cmp dword [ebp - 0x88], esi
jb 0x432327
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.0049cf83
add esp, 4
xor edx, edx
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
call fcn.00401360
lea ecx, [ebp - 0xb0]
call fcn.00401360
cmp dword [ebp - 0x18], esi
jb 0x432363
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049cf83
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], esi
jb 0x432380
mov edx, dword [ebp - 0x48]
push edx
call fcn.0049cf83
add esp, 4
xor eax, eax
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 0xc
call fcn.00401360
mov esi, dword [ebp - 0xa4]
add esi, 0x1c
mov dword [ebp - 0xa4], esi
cmp esi, dword [ebp - 0xc0]
jne 0x432180
mov ebx, dword [ebp - 0xf4]
push ebx
lea edi, [ebp - 0x104]
call fcn.00434450
mov dword [ebp - 0xe8], 1
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0xb4]
lea esi, [ebp - 0x104]
call fcn.00411cc0
mov ecx, dword [ebp - 0x100]
push ecx
call fcn.0049cf83
mov eax, dword [ebp - 0xc4]
xor esi, esi
add esp, 4
cmp eax, esi
je 0x432426
mov edi, dword [ebp - 0xc0]
call fcn.00418200
mov edx, dword [ebp - 0xc4]
push edx
call fcn.0049cf83
add esp, 4
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xbc], esi
cmp eax, esi
je 0x43244b
push eax
call fcn.0049cf83
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049cc86
mov esp, ebp
pop ebp
ret