Function at 0x54b6be
Capabilities:
Prepare http request
Set http header

Disassembly:
push ebp
lea ebp, [esp - 0x320]
sub esp, 0x320
push 0xffffffffffffffff
push 0x66bed8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x758f44]
xor eax, ebp
mov dword [ebp + 0x31c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp + 0x328]
lea ecx, [ebp + 0x2dc]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x40], esi
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
add eax, 0x50
push eax
call fcn.00459297
and dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x60], edi
xor eax, eax
inc eax
mov byte [ebp - 4], al
cmp dword [ebp + 0x300], edi
je 0x54b763
push 0x30
call fcn.005fa585
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp + 0x2dc]
mov byte [ebp - 4], 2
lea ecx, [edi + 8]
mov dword [edi], vtable.std::_Func_impl_no_alloc_class_std::function_void____cdecl___enum_web::http::details::_http_request::request_phase____void__enum_web::http::details::_http_request::request_phase_const__.0
push eax
call fcn.00459297
mov dword [ebp - 0x60], edi
lea ecx, [ebp + 0x2dc]
mov dword [ebp - 0x1c], 6
call fcn.0045674e
test edi, edi
mov dword [ebp - 4], 3
sete al
test edi, edi
je 0x54b7ac
mov dword [ebp - 0x14], 0xd
test al, al
jne 0x54c0c5
mov eax, dword [edi]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call dword [0x670300]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x28]
mov ecx, ebx
call fcn.0054b275
mov edi, dword [esi]
mov ebx, eax
mov dword [ebp - 0x38], edi
test ebx, ebx
je 0x54b7f1
push str.Open_failed
lea ecx, [ebp + 0x304]
call fcn.0044eb76
lea eax, [ebp + 0x304]
mov byte [ebp - 4], 4
push eax
push ebx
mov ecx, edi
call fcn.00547926
lea ecx, [ebp + 0x304]
call fcn.004510b9
jmp 0x54c095
mov eax, dword [esi + 4]
test eax, eax
je 0x54b7fc
lock inc dword [eax + 4]
mov eax, dword [esi + 4]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x4c], eax
xor edx, edx
mov dword [ebp - 0x48], edx
mov ebx, edx
mov dword [ebp - 0x44], ebx
test eax, eax
je 0x54b822
mov ebx, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], ebx
lock inc dword [eax + 8]
mov ecx, dword [ebp - 0x20]
push 6
pop eax
mov byte [ebp - 4], al
xor eax, eax
inc eax
mov byte [ebp - 0x24], dl
cmp dword [ecx + 0x1b8], eax
jne 0x54b8d8
xor eax, eax
mov dword [ebp + 0x2fc], edx
lea edi, [ebp - 0x5c]
mov dword [ebp + 0x2f0], 3
stosd dword es:[edi], eax
xorps xmm0, xmm0
movlpd qword [ebp + 0x2f4], xmm0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
inc eax
mov dword [ebp + 0x2ec], eax
mov dword [ebp + 0x300], eax
lea eax, [ecx + 0x14]
push eax
lea ecx, [ebp + 0x304]
call fcn.00450b40
cmp dword [ebp + 0x318], 8
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp + 0x2ec]
mov dword [ebp - 0x1c], 0x46
lea eax, [ebp + 0x304]
cmovae eax, dword [ebp + 0x304]
push ecx
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x2ec]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
lea ecx, [ebp + 0x304]
mov esi, eax
call fcn.004510b9
mov eax, dword [ebp - 0x24]
test esi, esi
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x28]
push 1
movzx eax, al
pop ecx
cmovne eax, ecx
mov dword [ebp - 0x24], eax
mov ecx, dword [edi + 0x10]
lea eax, [ebp + 0x1f8]
push eax
call fcn.004cd1d3
or dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x20]
lea ecx, [ebp + 0xb0]
add eax, 0x2c
mov byte [ebp - 4], 7
push eax
call fcn.0049bfa3
lea eax, [ebp + 0x1f8]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp + 0xb0]
call fcn.004ba1d9
mov cl, byte [ebp + 0x2a4]
push eax
mov byte [eax + 0x94], cl
lea ecx, [ebp + 0x148]
call fcn.004b915e
or dword [ebp - 0x1c], 0x10
lea eax, [ebp]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp + 0x148]
call fcn.004b9909
push eax
lea ecx, [ebp + 0x2c0]
mov byte [ebp - 4], 0xa
call fcn.00450b40
or dword [ebp - 0x1c], 0x20
lea ecx, [ebp + 0x18]
call fcn.0049c02f
lea ecx, [ebp]
call fcn.004510b9
lea ecx, [ebp + 0x160]
call fcn.0049c02f
lea ecx, [ebp + 0x148]
call fcn.004510b9
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 0xe
call fcn.0049c02f
mov eax, dword [ebp - 0x20]
mov ecx, 0x800040
push 0x40
pop edx
cmp byte [eax + 0x2f4], 0
cmovne edx, ecx
cmp dword [ebp + 0x2d4], 8
lea ecx, [ebp + 0x2c0]
cmovae ecx, dword [ebp + 0x2c0]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x10]
add ecx, 0x30
cmp dword [ecx + 0x14], 8
jb 0x54b9c9
mov ecx, dword [ecx]
push edx
xor edx, edx
push edx
push edx
push edx
push dword [ebp - 0x14]
push ecx
push dword [eax + 0x2f0]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [edi + 0x48], eax
test eax, eax
jne 0x54ba7e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi]
lea ecx, [ebp + 0x304]
push 0x714ca4
mov edi, eax
call fcn.0044ea89
lea eax, [ebp + 0x304]
mov byte [ebp - 4], 0xf
push eax
mov edx, edi
lea ecx, [ebp + 0x2ec]
call fcn.0054ad55
pop ecx
mov byte [ebp - 4], 0x10
push eax
push edi
mov ecx, esi
call fcn.005478e2
lea ecx, [ebp + 0x2ec]
call fcn.004511a7
lea ecx, [ebp + 0x304]
call fcn.004511a7
lea ecx, [ebp + 0x2c0]
call fcn.004510b9
lea ecx, [ebp + 0x210]
call fcn.0049c02f
lea ecx, [ebp + 0x1f8]
call fcn.004510b9
test ebx, ebx
je 0x54ba76
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x54ba76
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
jmp 0x54c08c
cmp byte [ebp - 0x24], 0
je 0x54bad3
push 0xc
lea ecx, [ebp - 0x5c]
push ecx
push 0x26
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x54bad3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi]
lea ecx, [ebp + 0x304]
push str.Setting_proxy_options
mov edi, eax
call fcn.0044ea89
lea eax, [ebp + 0x304]
mov byte [ebp - 4], 0x11
push eax
mov edx, edi
lea ecx, [ebp + 0x2ec]
call fcn.0054ad55
pop ecx
mov byte [ebp - 4], 0x12
jmp 0x54ba21
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 2
push eax
push 0x3f
push dword [edi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x54bb2b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi]
lea ecx, [ebp + 0x304]
push str.Disabling_redirects
mov edi, eax
call fcn.0044ea89
lea eax, [ebp + 0x304]
mov byte [ebp - 4], 0x13
push eax
mov edx, edi
lea ecx, [ebp + 0x2ec]
call fcn.0054ad55
pop ecx
mov byte [ebp - 4], 0x14
jmp 0x54ba21
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x1f4], 0
je 0x54bb92
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 2
push eax
push 0x4d
push dword [edi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x54bb8f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi]
lea ecx, [ebp + 0x304]
push str.Setting_autologon_policy_to_WINHTTP_AUTOLOGON_SECURITY_LEVEL_HIGH
mov edi, eax
call fcn.0044ea89
lea eax, [ebp + 0x304]
mov byte [ebp - 4], 0x15
push eax
mov edx, edi
lea ecx, [ebp + 0x2ec]
call fcn.0054ad55
pop ecx
mov byte [ebp - 4], 0x16
jmp 0x54ba21
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x21f], 0
jne 0x54bbf6
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x3300
push eax
push 0x1f
push dword [edi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x54bbf3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi]
lea ecx, [ebp + 0x304]
push str.Setting_ignore_server_certificate_verification
mov edi, eax
call fcn.0044ea89
lea eax, [ebp + 0x304]
mov byte [ebp - 4], 0x17
push eax
mov edx, edi
lea ecx, [ebp + 0x2ec]
call fcn.0054ad55
pop ecx
mov byte [ebp - 4], 0x18
jmp 0x54ba21
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x220], 0
je 0x54bc6f
push 0
push 0
push 0x2f
push dword [edi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x54bc6f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi]
lea ecx, [ebp + 0x304]
push str.Error_setting_option
mov edi, eax
call fcn.0044ea89
lea eax, [ebp + 0x304]
mov byte [ebp - 4], 0x19
push eax
mov edx, edi
lea ecx, [ebp + 0x2ec]
call fcn.0054ad55
pop ecx
push eax
push edi
mov ecx, esi
mov byte [ebp - 4], 0x1a
call fcn.005478e2
lea ecx, [ebp + 0x2ec]
call fcn.004511a7
lea ecx, [ebp + 0x304]
mov byte [ebp - 4], 0xe
call fcn.004511a7
mov edi, dword [ebp - 0x38]
mov ecx, dword [edi + 0x10]
call fcn.004bb5ea
mov dword [ebp - 0x14], eax
test eax, eax
je 0x54bd1b
mov esi, dword [edi + 0x10]
mov edx, 0x793ec8
lea ecx, [esi + 0x30]
call fcn.00464db0
test al, al
jne 0x54bcc9
mov edx, 0x7941f8
lea ecx, [esi + 0x30]
call fcn.00464db0
test al, al
jne 0x54bcc9
mov eax, dword [ebp - 0x14]
or esi, 0xffffffff
cmp eax, esi
jne 0x54bcba
mov dword [edi + 0x54], 2
jmp 0x54bd1e
xor ecx, ecx
inc ecx
mov dword [edi + 0x54], ecx
mov dword [edi + 0x58], eax
and dword [edi + 0x5c], 0
jmp 0x54bd1e
mov esi, dword [ebp - 0x28]
lea ecx, [ebp + 0x304]
push str.A_GET_or_HEAD_request_should_not_have_an_entity_body.
mov esi, dword [esi]
call fcn.0044eb76
lea eax, [ebp + 0x304]
mov byte [ebp - 4], 0x1b
push eax
lea ecx, [ebp + 0x2d8]
call fcn.004bb102
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1c
call fcn.005487c0
lea ecx, [ebp + 0x2d8]
call fcn.004bb165
lea ecx, [ebp + 0x304]
call fcn.004510b9
jmp 0x54ba40
or esi, 0xffffffff
mov edx, dword [edi + 0x10]
lea ecx, [ebp + 0x2a8]
add edx, 0x14
call fcn.004bb2c0
lea eax, [ebp + 0x304]
mov byte [ebp - 4], 0x1d
push eax
mov ecx, edi
call fcn.00547ba6
mov byte [ebp - 4], 0x1e
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x54bd50
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp + 0x2a8]
call fcn.004510e7
lea ecx, [ebp + 0x304]
mov byte [ebp - 4], 0x1d
call fcn.004510b9
cmp dword [ebp + 0x2b8], 0
je 0x54be45
cmp dword [ebp + 0x2bc], 8
lea eax, [ebp + 0x2a8]
push 0x20000000
push dword [ebp + 0x2b8]
cmovae eax, dword [ebp + 0x2a8]
push eax
push dword [edi + 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x54be45
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [ebp - 0x28]
lea ecx, [ebp + 0x304]
push 0x714ec4
mov edi, eax
mov esi, dword [esi]
call fcn.0044ea89
lea eax, [ebp + 0x304]
mov byte [ebp - 4], 0x1f
push eax
mov edx, edi
lea ecx, [ebp + 0x2ec]
call fcn.0054ad55
pop ecx
push eax
push edi
mov ecx, esi
mov byte [ebp - 4], 0x20
call fcn.005478e2
lea ecx, [ebp + 0x2ec]
call fcn.004511a7
lea ecx, [ebp + 0x304]
call fcn.004511a7
lea ecx, [ebp + 0x2a8]
call fcn.004510b9
lea ecx, [ebp + 0x2c0]
call fcn.004510b9
lea ecx, [ebp + 0x210]
call fcn.0049c02f
lea ecx, [ebp + 0x1f8]
call fcn.004510b9
test ebx, ebx
je 0x54ba76
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
dec eax
jmp 0x54ba6d
mov ecx, dword [edi + 0x10]
add ecx, 0x78
cmp dword [ecx], 0
je 0x54bed4
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
test ebx, ebx
je 0x54be6d
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
lock inc dword [ebx + 8]
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x22
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0054ddd0
mov edx, eax
mov dword [ebp - 0x28], edx
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 0x23
cmp ecx, edx
je 0x54beab
mov eax, dword [ecx]
test eax, eax
je 0x54bea1
mov ecx, eax
call fcn.0045c48f
mov edx, dword [ebp - 0x28]
lea ecx, [edi + 0x38]
and dword [ecx], 0
mov eax, dword [edx]
mov dword [ecx], eax
and dword [edx], 0
mov byte [ebp - 4], 0x24
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x54bebb
call fcn.0045c48f
and dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x54bed4
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x54bed4
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 0x25
cmp dword [eax + 0x274], 0
je 0x54bef5
push dword [edi + 0x48]
lea ecx, [eax + 0x250]
call fcn.0045926d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 0x1d
cmp dword [edi + 0x54], 0
je 0x54bfca
cmp byte [eax + 0x2a0], 0
je 0x54bfca
mov eax, dword [edi]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call dword [0x670300]
mov ecx, edi
call esi
mov edi, eax
mov byte [ebp - 4], 0x27
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
inc ecx
or eax, ecx
mov ecx, dword [edi]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x670300]
mov ecx, edi
call esi
test al, al
jne 0x54bfca
xor eax, eax
inc eax
mov byte [ebp - 0x15], al
jmp 0x54bfce
mov byte [ebp - 0x15], 0
mov dword [ebp - 4], 0x1d
mov eax, dword [ebp - 0x1c]
test al, 1
je 0x54bfe4
lea ecx, [ebp - 0x34]
call fcn.004bea35
cmp byte [ebp - 0x15], 0
je 0x54c03b
push 0xc
call fcn.005fa585
mov dword [ebp - 0x40], eax
mov ecx, eax
mov byte [ebp - 4], 0x28
call fcn.0050c871
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x3c]
sub ecx, 0xffffff80
mov byte [ebp - 4], 0x1d
mov dword [ebp - 0x3c], eax
cmp ecx, edx
je 0x54c033
mov edi, dword [ecx]
and dword [ebp - 0x3c], 0
mov dword [ecx], eax
test edi, edi
je 0x54c033
mov eax, dword [edi]
xor ecx, ecx
inc ecx
push ecx
mov esi, dword [eax]
mov ecx, esi
call dword [0x670300]
mov ecx, edi
call esi
lea ecx, [ebp - 0x3c]
call fcn.0045e177
push dword [ebp - 0x14]
lea eax, [ebp - 0x50]
push eax
call fcn.0054c0cb
lea ecx, [ebp + 0x2a8]
call fcn.004510b9
lea ecx, [ebp + 0x2c0]
call fcn.004510b9
lea ecx, [ebp + 0x210]
call fcn.0049c02f
lea ecx, [ebp + 0x1f8]
call fcn.004510b9
test ebx, ebx
je 0x54c089
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
dec eax
jne 0x54c089
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x54c095
call fcn.0044e240
lea ecx, [ebp - 0x84]
call fcn.0045674e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x31c]
xor ecx, ebp
call fcn.005f9dd5
add ebp, 0x320
leave
ret 4
call fcn.005fb70f
int3