Function at 0x4549c0
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd788
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x505034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 8], 0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
je 0x454bd8
push dword [ebp - 0x10]
lea ecx, [edi + 0x10]
push edx
sub esp, 8
mov edx, esp
mov dword [edx], 0
mov dword [edx + 4], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x454a33
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 0x454a5b
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.004562b0
cmp dword [esi + 0x10], 0
je 0x454a96
cmp dword [esi + 0x14], 8
jb 0x454a78
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 0x454bef
jmp 0x454a99
lea esi, [edi + 0x10]
push dword [edi + 0xcc]
lea eax, [edi + 0xb4]
mov ecx, esi
push eax
lea eax, [edi + 0x9c]
push eax
call fcn.00456940
push dword [edi + 0x100]
lea eax, [edi + 0xe8]
mov ecx, esi
push eax
lea eax, [edi + 0xd0]
push eax
call fcn.00456b80
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
test esi, esi
je 0x454b18
cmp esi, 0x7fffffff
ja 0x454c11
push esi
lea ecx, [ebp - 0x20]
call fcn.00422590
push esi
push dword [ebp - 0x2c]
mov esi, dword [ebp - 0x20]
push esi
call fcn.00492330
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x4c]
call fcn.004224e0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x454b5f
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x454b55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454c16
push edx
push ecx
call fcn.00479e95
add esp, 8
cmp dword [ebp + 0x1c], 0
je 0x454b93
push 0xc
call fcn.00479ea3
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 0x454b93
push ecx
call fcn.00455970
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x454bb0
lea ecx, [edi + 0x68]
cmp ecx, ebx
je 0x454bb0
cmp dword [ebx + 0x14], 8
jb 0x454ba9
mov ebx, dword [ebx]
push eax
push ebx
call fcn.00415170
mov eax, dword [edi + 0x104]
lea ecx, [edi + 0x10]
mov dword [edi + 0x84], eax
call fcn.00456890
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 - 0x28]
call fcn.0046c5f0
push 0x50271c
mov eax, ecx
push eax
call fcn.00491d27
push str.Unable_to_add_headers_to_the_request_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.0046c6b0
push 0x50271c
lea eax, [ebp - 0x28]
push eax
call fcn.00491d27
call fcn.00416f90
call fcn.0049b19a
int3