Function at 0x4514d0
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e30cd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x51c100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 8], 0
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x20], ecx
je 0x451719
push edx
push eax
sub esp, 8
lea ecx, [edi + 0x10]
mov edx, esp
mov dword [edx], 0
mov dword [edx + 4], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x45153e
lock inc dword [eax + 4]
mov eax, dword [edi + 8]
sub esp, 8
mov dword [edx], eax
mov eax, dword [edi + 0xc]
mov dword [edx + 4], eax
mov edx, esp
mov dword [edx], 0
mov dword [edx + 4], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x451566
lock inc dword [eax + 4]
mov eax, dword [edi]
mov dword [edx], eax
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
call fcn.00452bc0
cmp dword [esi + 0x10], 0
je 0x4515a1
cmp dword [esi + 0x14], 8
jb 0x451583
mov esi, dword [esi]
push 0x10000000
push 0xffffffffffffffff
push esi
push dword [edi + 0x20]
lea esi, [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x451730
jmp 0x4515a4
lea esi, [edi + 0x10]
push dword [edi + 0xe8]
lea eax, [edi + 0xcc]
mov ecx, esi
push dword [edi + 0xe4]
push eax
lea eax, [edi + 0xb4]
push eax
call fcn.00452fe0
push dword [edi + 0x11c]
lea eax, [edi + 0x104]
mov ecx, esi
push eax
lea eax, [edi + 0xec]
push eax
call fcn.004531a0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
test eax, eax
je 0x45163e
cmp eax, 0x7fffffff
ja 0x451752
push eax
call fcn.0040eb00
mov ecx, dword [ebp - 0x20]
push ecx
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
lea esi, [eax + ecx]
mov dword [ebp - 0x14], eax
push eax
mov dword [ebp - 0x10], esi
call fcn.004a3000
add esp, 0xc
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.00419330
lea esi, [edi + 0x10]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x3c]
call fcn.004192a0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4516a1
mov edx, dword [ebp - 0x10]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x451682
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451757
push edx
push ecx
call fcn.004a05b3
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x1c], 0
je 0x4516d5
push 0xc
call fcn.004a05c1
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x58], eax
test ecx, ecx
je 0x4516d5
push ecx
call fcn.00452250
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4516f2
lea ecx, [edi + 0x68]
cmp ecx, ebx
je 0x4516f2
cmp dword [ebx + 0x14], 8
jb 0x4516eb
mov ebx, dword [ebx]
push eax
push ebx
call fcn.0040a190
mov eax, dword [edi + 0x120]
mov ecx, esi
mov dword [edi + 0x84], eax
call fcn.00452f30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push 0x57
lea ecx, [ebp - 0x38]
call fcn.0048de30
push 0x518f50
mov eax, ecx
push eax
call fcn.004a2f8b
push str.Unable_to_add_headers_to_the_request_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.0048def0
push 0x518f50
lea eax, [ebp - 0x38]
push eax
call fcn.004a2f8b
call fcn.0040dc80
call fcn.004ace5f
int3