Function at 0x4520f0
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518a86
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x580b30]
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 ebx, ebx
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x84], ebx
cmp ecx, ebx
jne 0x45214a
lea eax, [ebx + 1]
jmp 0x452474
mov edi, dword [eax]
mov ecx, dword [eax + 4]
xor eax, eax
cmp edi, ecx
je 0x452474
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], ebx
cmp edi, ecx
je 0x45222e
push 0x53d0c8
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.00405480
add esp, 0xc
mov ecx, eax
lea eax, [edi + 0x1c]
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00405440
push eax
mov edx, 0x53d0c0
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004053f0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040a590
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x4521d2
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00469e1a
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x6c], esi
jb 0x4521f3
mov eax, dword [ebp - 0x80]
push eax
call fcn.00469e1a
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], bl
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
cmp dword [ebp - 0x34], esi
jb 0x452217
mov edx, dword [ebp - 0x48]
push edx
call fcn.00469e1a
add esp, 4
mov eax, dword [ebp - 0x8c]
add edi, 0x38
cmp edi, dword [eax + 4]
jne 0x452174
mov eax, dword [ebp - 0x1c]
jmp 0x452233
mov esi, 8
lea ecx, [eax - 2]
cmp ecx, eax
ja 0x452247
push 0xffffffffffffffff
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040a810
jmp 0x452253
sub ecx, eax
push ebx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00416e60
mov dword [ebp - 0x138], 0x534e40
mov dword [ebp - 0x128], 0x537b70
mov dword [ebp - 0xd8], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x138]
mov byte [ebp - 4], 4
push edx
mov dword [ebp - 0x84], 1
call fcn.004034a0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x120]
push edx
mov dword [ebp + ecx - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.00403fb0
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
lea eax, [ebp - 0x2c]
push eax
push ecx
lea ecx, [ebp - 0x128]
push str.Request_headers:
push ecx
mov byte [ebp - 4], 7
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 8
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x138]
call fcn.00402c70
push eax
push 3
mov byte [ebp - 4], 8
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x34], esi
jb 0x452327
mov edx, dword [ebp - 0x48]
push edx
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], bl
call fcn.00401820
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x452340
lea eax, [ebp - 0x2c]
push 0x20000000
push 0xffffffffffffffff
push eax
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x452461
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x88]
mov dword [edi], eax
mov dword [ebp - 0x138], 0x534e40
mov dword [ebp - 0x128], 0x537b70
mov dword [ebp - 0xd8], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x138]
mov byte [ebp - 4], 9
push edx
mov dword [ebp - 0x84], 3
call fcn.004034a0
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x120]
push edx
mov dword [ebp + ecx - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.00403fb0
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 4], 0xc
mov eax, dword [edi]
push eax
push ecx
lea ecx, [ebp - 0x128]
push str.WinHttpAddRequestHeaders_failed:
push ecx
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00402980
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x138]
call fcn.00402c70
push eax
push 1
mov byte [ebp - 4], 0xd
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x34], esi
jb 0x45243b
mov edx, dword [ebp - 0x48]
push edx
call fcn.00469e1a
add esp, 4
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], bl
call fcn.00401820
cmp dword [ebp - 0x18], esi
jb 0x45245a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00469e1a
add esp, 4
mov eax, 3
jmp 0x452474
cmp dword [ebp - 0x18], esi
jb 0x452472
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00469e1a
add esp, 4
xor eax, eax
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.004d31b7
mov esp, ebp
pop ebp
ret 8