Function at 0x52cc40
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf901
mov eax, dword fs:[0]
push eax
sub esp, 0x334
mov eax, dword [0x64a070]
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 edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x320], eax
cmp dword [ecx + 0x10], 0
mov dword [ebp - 0x314], ecx
sete al
mov dword [ebp - 0x31c], edx
test al, al
jne 0x52e420
cmp dword [ecx + 0x28], 0
lea ebx, [ecx + 0x18]
sete al
test al, al
jne 0x52e420
cmp dword [ecx + 0x40], 0
lea eax, [ecx + 0x30]
mov dword [ebp - 0x21c], eax
sete al
test al, al
jne 0x52e420
push ecx
mov ecx, edi
call fcn.0052b020
lea esi, [edi + 0xc0]
mov ecx, esi
call fcn.0041e6e0
push str.CancelPort
lea ecx, [ebp - 0x290]
mov byte [edi + 0x118], 0
call fcn.00408810
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x290]
mov dword [ebp - 4], 0
call fcn.0040aa30
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
cmovae eax, dword [ebp - 0x290]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0xe0], eax
mov eax, dword [ebp - 0x31c]
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x52cd43
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x25c], 0xf
mov dword [ebp - 0x260], ecx
mov byte [ebp - 0x270], cl
mov esi, dword [ebp - 0x314]
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x52cd72
mov ecx, dword [esi]
jmp 0x52cd74
mov ecx, esi
push 0
lea edx, [ebp - 0x270]
call fcn.00518080
add esp, 4
test al, al
jne 0x52cdfe
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52cdc4
mov eax, dword [0x656c44]
test eax, eax
je 0x52cdba
push str.Failed_in_multibyte_to_wide_conversion__in_HttpSend
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x32
call eax
add esp, 0x18
jmp 0x52cdde
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52cdde
mov eax, dword [ecx]
push str.Failed_in_multibyte_to_wide_conversion__in_HttpSend
push str.HTTPConnector
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
lea ecx, [ebp - 0x270]
call fcn.00408870
lea ecx, [ebp - 0x290]
call fcn.004087d0
mov eax, 5
jmp 0x52e47b
mov dword [ebp - 0x22c], 0xf
mov dword [ebp - 0x230], 0
mov byte [ebp - 0x240], 0
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 2
cmp dword [ecx + 0x14], 8
jb 0x52ce28
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x240]
call fcn.00518080
push dword [edi + 0x30]
xor eax, eax
lea ecx, [ebp - 0x210]
cmp dword [ebp - 0x25c], 0x10
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x270]
cmovae eax, dword [ebp - 0x270]
push eax
call fcn.0052b6f0
push dword [edi + 0x30]
call fcn.005296e0
add esp, 0x10
mov byte [ebp - 0x315], al
cmp word [ebp - 0x210], 0
push 0x10000000
push 0
jne 0x52ce89
push 0
push 0
jmp 0x52ce92
lea eax, [ebp - 0x210]
push eax
push 3
push 0x6206fc
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
cmp byte [ebp - 0x315], 0
mov dword [ebp - 0x308], eax
je 0x52ceb7
push dword [edi + 0x30]
call fcn.00529d40
add esp, 4
cmp dword [ebp - 0x308], 0
jne 0x52cf49
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52cf00
mov eax, dword [0x656c44]
test eax, eax
je 0x52cef6
push str.Failed_to_open_a_WinHttp_session__in_HttpSend
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x32
call eax
add esp, 0x18
jmp 0x52cf1a
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52cf1a
mov eax, dword [ecx]
push str.Failed_to_open_a_WinHttp_session__in_HttpSend
push str.HTTPConnector
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi + 0xe0]
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x240]
call fcn.00408870
jmp 0x52cdde
mov eax, dword [esi + 0x70]
mov ecx, 0x1bb
test eax, eax
push esi
cmove eax, ecx
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x300], eax
call fcn.0040d5f0
push 0
push str.https:__
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 3
call fcn.00428450
cmp eax, 0xffffffff
je 0x52cfcd
push str.https:__
lea ecx, [ebp - 0x338]
call fcn.00408810
push 0xffffffffffffffff
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x258]
push dword [eax + 0x10]
lea eax, [ebp - 0x2a8]
push eax
call fcn.0040d270
push eax
lea ecx, [ebp - 0x258]
call fcn.0040d2b0
lea ecx, [ebp - 0x2a8]
call fcn.004087d0
lea ecx, [ebp - 0x338]
jmp 0x52d02c
push 0
push str.http:__
lea ecx, [ebp - 0x258]
call fcn.00428450
cmp eax, 0xffffffff
je 0x52d035
push str.http:__
lea ecx, [ebp - 0x2a8]
call fcn.00408810
push 0xffffffffffffffff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x258]
push dword [eax + 0x10]
lea eax, [ebp - 0x338]
push eax
call fcn.0040d270
push eax
lea ecx, [ebp - 0x258]
call fcn.0040d2b0
lea ecx, [ebp - 0x338]
call fcn.004087d0
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 3
call fcn.004087d0
cmp dword [ebp - 0x244], 8
lea eax, [ebp - 0x258]
mov esi, dword [ebp - 0x308]
cmovae eax, dword [ebp - 0x258]
push 0
push dword [ebp - 0x300]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [ebp - 0x310], edx
test edx, edx
jne 0x52d106
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52d0ab
mov eax, dword [0x656c44]
test eax, eax
je 0x52d0a1
push str.Failed_to_connect_to_server__in_HttpSend
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x32
call eax
add esp, 0x18
jmp 0x52d0c5
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52d0c5
mov eax, dword [ecx]
push str.Failed_to_connect_to_server__in_HttpSend
push str.HTTPConnector
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [edi + 0xe0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x258]
call fcn.004087d0
lea ecx, [ebp - 0x240]
call fcn.00408870
jmp 0x52cdde
xor eax, eax
mov ecx, 0x800000
cmp dword [ebp - 0x300], 0x1bb
cmove eax, ecx
cmp dword [ebx + 0x14], 8
jb 0x52d122
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x21c]
cmp dword [ecx + 0x14], 8
jb 0x52d130
mov ecx, dword [ecx]
push eax
push 0
push 0
push 0
push ebx
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x30c], esi
test esi, esi
jne 0x52d1f6
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52d18c
mov eax, dword [0x656c44]
test eax, eax
je 0x52d182
push str.Failed_to_open_http_request__in_HttpSend
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x32
call eax
add esp, 0x18
jmp 0x52d1a6
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52d1a6
mov eax, dword [ecx]
push str.Failed_to_open_http_request__in_HttpSend
push str.HTTPConnector
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x308]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call esi
push dword [ebp - 0x310]
call esi
push dword [edi + 0xe0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x258]
call fcn.004087d0
lea ecx, [ebp - 0x240]
call fcn.00408870
jmp 0x52cdde
mov eax, dword [ebp - 0x314]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [eax + 0x6c]
test eax, eax
jle 0x52d2b7
imul eax, eax, 0x3e8
push eax
push 0x7530
push 0xea60
push 0x1388
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x52d2b7
mov eax, dword [edi + 0x30]
test eax, eax
je 0x52d254
mov esi, dword [eax]
call ebx
push eax
push str.Failed_in_setting_timeout_for_network_call__error_received__d
push str.HTTPConnector
push 0x5f8398
push 0x32
push dword [edi + 0x30]
jmp 0x52d2ab
cmp dword [0x656c44], 0
je 0x52d286
call ebx
push eax
push str.Failed_in_setting_timeout_for_network_call__error_received__d
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x32
call dword [0x656c44]
add esp, 0x1c
jmp 0x52d2b7
mov eax, dword [0x656c48]
test eax, eax
je 0x52d2b7
mov esi, dword [eax]
call ebx
push eax
push str.Failed_in_setting_timeout_for_network_call__error_received__d
push str.HTTPConnector
push 0x5f8398
push 0x32
push dword [0x656c48]
call dword [esi + 0x34]
mov esi, dword [ebp - 0x30c]
add esp, 0x18
mov edx, dword [ebp - 0x314]
mov ecx, esi
call fcn.0052ac40
push 0
push 0x17f0300
push 0x52c440
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x52d366
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52d31c
mov eax, dword [0x656c44]
test eax, eax
je 0x52d312
push str.Failed_in_setting_status_callback_in_HttpSend
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x32
call eax
add esp, 0x18
jmp 0x52d336
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52d336
mov eax, dword [ecx]
push str.Failed_in_setting_status_callback_in_HttpSend
push str.HTTPConnector
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
call ebx
push dword [ebp - 0x308]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call esi
push dword [ebp - 0x310]
call esi
push dword [ebp - 0x30c]
jmp 0x52d1cd
push 0x50
call fcn.0057609b
add esp, 4
mov dword [ebp - 0x274], eax
mov ecx, eax
call fcn.0052b5d0
push 0
push 0
push 0
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0x10], eax
cmp dword [edi + 0x10], 0
sete al
test al, al
jne 0x52d529
cmp dword [ebp + 0x14], 0
je 0x52d529
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52d3e5
mov eax, dword [0x656c44]
test eax, eax
je 0x52d3db
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x1e
call eax
add esp, 0x18
jmp 0x52d3ff
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52d3ff
mov eax, dword [ecx]
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push str.HTTPConnector
push 0x5f8398
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
push 4
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 2
push eax
push 0x4d
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [edi + 0x2c], 8
lea eax, [edi + 0x18]
jb 0x52d426
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x52d430
mov ecx, dword [edi]
jmp 0x52d432
mov ecx, edi
push 0
push eax
push ecx
push dword [ebp + 0x14]
push 1
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
jne 0x52d523
mov esi, dword [edi + 0x30]
test esi, esi
je 0x52d471
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi]
call eax
push eax
push str.Failed_in_setting_proxycredentials_in_HttpSend_error:_d
push str.HTTPConnector
push 0x5f8398
push 0x32
push dword [edi + 0x30]
jmp 0x52d4d3
cmp dword [0x656c44], 0
je 0x52d4a8
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push str.Failed_in_setting_proxycredentials_in_HttpSend_error:_d
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x32
call dword [0x656c44]
add esp, 0x1c
jmp 0x52d4d9
mov esi, dword [0x656c48]
test esi, esi
je 0x52d4d9
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi]
call eax
push eax
push str.Failed_in_setting_proxycredentials_in_HttpSend_error:_d
push str.HTTPConnector
push 0x5f8398
push 0x32
push dword [0x656c48]
call dword [esi + 0x34]
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x308]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call esi
push dword [ebp - 0x310]
call esi
push dword [ebp - 0x30c]
call esi
push dword [edi + 0xe0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, ebx
call fcn.0052ca00
jmp 0x52d0eb
mov byte [ebx + 0x34], 1
jmp 0x52d545
push 4
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 1
push eax
push 0x4d
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x30], 0xffffffff
mov eax, dword [edi + 0x30]
push 0x601648
push dword [ebp - 0x21c]
mov dword [ebx + 0x44], eax
mov eax, dword [edi + 0xe4]
mov dword [ebx + 0x4c], eax
call fcn.00423c90
add esp, 8
push ebx
test al, al
je 0x52d596
push 0
push 0
push 0
jmp 0x52d5b3
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x240]
cmp dword [ebp - 0x22c], 0x10
push eax
cmovae ecx, dword [ebp - 0x240]
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x52d621
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52d602
mov eax, dword [0x656c44]
test eax, eax
je 0x52d5f4
push str.Failed_in_making_http_request__in_HttpSend
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x32
call eax
jmp 0x52d4d6
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52d4d9
mov eax, dword [ecx]
push str.Failed_in_making_http_request__in_HttpSend
push str.HTTPConnector
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
jmp 0x52d4d9
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x218], eax
mov eax, dword [edi + 0xe0]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x314]
mov eax, dword [eax + 0x6c]
add eax, 5
imul eax, eax, 0x3e8
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0
push 0xffffffffffffffff
push 0
push esi
mov dword [ebp - 0x274], eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov ecx, dword [ebx + 0x38]
cmp ecx, 0xbe
jne 0x52d911
cmp dword [edi + 0x10], 0
sete al
test al, al
jne 0x52d911
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52d6c7
mov eax, dword [0x656c44]
test eax, eax
je 0x52d6bd
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x1e
call eax
add esp, 0x18
jmp 0x52d6e1
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52d6e1
mov eax, dword [ecx]
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push str.HTTPConnector
push 0x5f8398
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
jne 0x52d7b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi + 0xe0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call esi
push dword [ebx + 0x10]
call esi
push dword [ebp - 0x308]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x310]
call esi
push dword [ebp - 0x30c]
call esi
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52d792
mov eax, dword [0x656c44]
test eax, eax
je 0x52d784
push dword [edi + 0xdc]
push str.Error_occured_while_fetching_proxy_authentication_type__d
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x32
call eax
add esp, 0x1c
jmp 0x52d0eb
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52d0eb
push dword [edi + 0xdc]
mov eax, dword [ecx]
push str.Error_occured_while_fetching_proxy_authentication_type__d
push str.HTTPConnector
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
jmp 0x52d0eb
mov ecx, dword [ebp - 0x220]
call fcn.0052cae0
push dword [edi + 0xe0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x21c], eax
call esi
push dword [ebx + 0x10]
call esi
push dword [ebp - 0x308]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x310]
call esi
push dword [ebp - 0x30c]
call esi
cmp dword [edi + 0x30], 0
mov esi, dword [ebp - 0x21c]
je 0x52d825
mov edx, esi
lea ecx, [ebp - 0x338]
call fcn.0052ca20
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 8
jb 0x52d820
mov edx, dword [edx]
mov eax, dword [edi + 0x30]
jmp 0x52d897
cmp dword [0x656c44], 0
je 0x52d86e
mov edx, esi
lea ecx, [ebp - 0x338]
call fcn.0052ca20
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x52d847
mov eax, dword [eax]
push eax
push str.Proxy_Authentication_type:__s
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x1e
call dword [0x656c44]
add esp, 0x1c
jmp 0x52d8b2
cmp dword [0x656c48], 0
je 0x52d8c1
mov edx, esi
lea ecx, [ebp - 0x338]
call fcn.0052ca20
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 8
jb 0x52d892
mov edx, dword [edx]
mov eax, dword [0x656c48]
mov ecx, dword [eax]
push edx
push str.Proxy_Authentication_type:__s
push str.HTTPConnector
push 0x5f8398
push 0x1e
push eax
call dword [ecx + 0x34]
add esp, 0x18
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 3
call fcn.004087d0
mov edx, dword [ebp - 0x31c]
mov ecx, edi
push esi
push edx
push dword [ebp - 0x320]
push dword [ebp - 0x314]
call fcn.0052cc40
lea ecx, [ebp - 0x258]
mov esi, eax
call fcn.004087d0
lea ecx, [ebp - 0x240]
call fcn.00408870
lea ecx, [ebp - 0x270]
call fcn.00408870
lea ecx, [ebp - 0x290]
call fcn.004087d0
mov eax, esi
jmp 0x52e47b
cmp ecx, 0x191
jne 0x52dbce
cmp dword [edi + 0xf8], 0
sete al
test al, al
jne 0x52dbce
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52d96b
mov eax, dword [0x656c44]
test eax, eax
je 0x52d961
push str.Resending_request_with_user_credentials
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x1e
call eax
add esp, 0x18
jmp 0x52d985
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52d985
mov eax, dword [ecx]
push str.Resending_request_with_user_credentials
push str.HTTPConnector
push 0x5f8398
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
jne 0x52d9ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi + 0xe0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call esi
push dword [ebx + 0x10]
call esi
push dword [ebp - 0x308]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x310]
call esi
push dword [ebp - 0x30c]
call esi
jmp 0x52d0eb
mov ecx, dword [ebp - 0x220]
call fcn.0052cae0
cmp dword [edi + 0x30], 0
mov dword [ebp - 0x340], eax
je 0x52da25
mov edx, eax
lea ecx, [ebp - 0x338]
call fcn.0052ca20
mov edx, eax
mov byte [ebp - 4], 9
cmp dword [edx + 0x14], 8
jb 0x52da20
mov edx, dword [edx]
mov eax, dword [edi + 0x30]
jmp 0x52da97
cmp dword [0x656c44], 0
je 0x52da6e
mov edx, eax
lea ecx, [ebp - 0x338]
call fcn.0052ca20
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x52da47
mov eax, dword [eax]
push eax
push str.Proxy_Authentication_type:__s
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x1e
call dword [0x656c44]
add esp, 0x1c
jmp 0x52dab2
cmp dword [0x656c48], 0
je 0x52dac1
mov edx, eax
lea ecx, [ebp - 0x338]
call fcn.0052ca20
mov edx, eax
mov byte [ebp - 4], 0xb
cmp dword [edx + 0x14], 8
jb 0x52da92
mov edx, dword [edx]
mov eax, dword [0x656c48]
mov ecx, dword [eax]
push edx
push str.Proxy_Authentication_type:__s
push str.HTTPConnector
push 0x5f8398
push 0x1e
push eax
call dword [ecx + 0x34]
add esp, 0x18
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 3
call fcn.004087d0
push 4
lea eax, [ebp - 0x2cc]
mov dword [ebp - 0x2cc], 2
push eax
push 0x4d
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [edi + 0x114], 8
lea eax, [edi + 0x100]
jb 0x52daee
mov eax, dword [eax]
cmp dword [edi + 0xfc], 8
lea ecx, [edi + 0xe8]
jb 0x52daff
mov ecx, dword [ecx]
push 0
push eax
push ecx
push dword [ebp - 0x340]
push dword [ebp - 0x228]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x52d9a5
push 0
push 0x17f0000
push 0x52c440
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
je 0x52d9a5
push 0x601648
push dword [ebp - 0x21c]
call fcn.00423c90
add esp, 8
test al, al
jne 0x52db88
push str.DELETE
push dword [ebp - 0x21c]
call fcn.00423c90
add esp, 8
test al, al
jne 0x52db88
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x240]
cmp dword [ebp - 0x22c], 0x10
push ebx
cmovae ecx, dword [ebp - 0x240]
push eax
push eax
push ecx
jmp 0x52db8f
push ebx
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x52d9a5
mov eax, dword [ebp - 0x314]
imul eax, dword [eax + 0x6c], 0x3e8
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0
push 0xffffffffffffffff
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
xor eax, eax
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x2ac], 7
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
push eax
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [ebx + 0x3c], 0
mov edx, dword [ebx + 0x38]
mov ecx, dword [edi + 0x30]
setne al
mov byte [edi + 0x118], al
mov eax, dword [ebx + 0x40]
mov dword [edi + 0xdc], eax
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x220], edx
mov dword [edi + 0x11c], eax
test ecx, ecx
jne 0x52dc87
mov eax, dword [0x656c44]
test eax, eax
je 0x52dc7d
push edx
push dword [ebp - 0x224]
push str.The_http_request_returned_HTTP_Status:_d_HttpCommunicator_error:_d
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x1e
call eax
add esp, 0x20
jmp 0x52dca8
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52dcae
mov eax, dword [ecx]
push edx
push dword [ebp - 0x224]
push str.The_http_request_returned_HTTP_Status:_d_HttpCommunicator_error:_d
push str.HTTPConnector
push 0x5f8398
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x1c
mov ecx, dword [0x656c48]
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x52dd5e
cmp eax, 0x102
je 0x52dcd1
cmp eax, 1
jne 0x52dd5e
mov dword [ebx + 0x38], eax
jmp 0x52dcd8
mov dword [ebx + 0x38], 2
xor eax, eax
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], 0
mov word [ebp - 0x2a8], ax
push ecx
lea edx, [ebp - 0x2a8]
mov byte [ebp - 4], 0xd
mov ecx, ebx
call fcn.00518560
add esp, 4
mov dword [ebp - 0x2c4], 0x658e50
push 0x658e68
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x2a8]
push dword [ebp - 0x2c4]
push eax
push ecx
lea eax, [ebp - 0x278]
mov ecx, 0x658e80
push eax
call fcn.00426e60
push 0x658e68
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x2a8]
call fcn.004087d0
mov ecx, dword [0x656c48]
mov dword [ebp - 0x2d0], 0xf
mov dword [ebp - 0x2d4], 0
mov byte [ebp - 0x2e4], 0
mov byte [ebp - 4], 0xf
mov eax, dword [ebx + 0x38]
cmp eax, 2
je 0x52de84
cmp eax, 1
je 0x52de84
mov eax, dword [ebx]
test eax, eax
je 0x52de84
cmp dword [ebx + 0xc], 1
jne 0x52de84
push dword [ebx + 8]
lea ecx, [ebp - 0x2e4]
push eax
call fcn.00408bb0
cmp dword [ebp - 0x2d0], 0x10
lea ecx, [ebp - 0x2e4]
mov edx, dword [ebp - 0x31c]
cmovae ecx, dword [ebp - 0x2e4]
push 0
call fcn.00518230
mov edx, dword [edi + 0x30]
add esp, 4
test edx, edx
je 0x52de09
mov eax, dword [ebp - 0x31c]
cmp dword [eax + 0x14], 8
jb 0x52ddf0
mov ecx, dword [eax]
jmp 0x52ddf2
mov ecx, eax
mov eax, dword [edx]
push ecx
push str.Response_Message____n__s
push str.HTTPConnector
push 0x5f8398
push 0x14
push edx
jmp 0x52de78
cmp dword [0x656c44], 0
je 0x52de47
mov eax, dword [ebp - 0x31c]
cmp dword [eax + 0x14], 8
jb 0x52de20
mov eax, dword [eax]
push eax
push str.Response_Message____n__s
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x14
call dword [0x656c44]
add esp, 0x1c
jmp 0x52de7e
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52de84
mov eax, dword [ebp - 0x31c]
cmp dword [eax + 0x14], 8
jb 0x52de61
mov edx, dword [eax]
jmp 0x52de63
mov edx, eax
mov eax, dword [ecx]
push edx
push str.Response_Message____n__s
push str.HTTPConnector
push 0x5f8398
push 0x14
push ecx
call dword [eax + 0x34]
add esp, 0x18
mov ecx, dword [0x656c48]
mov eax, dword [ebx + 0x38]
cmp eax, 2
je 0x52de9b
cmp eax, 1
je 0x52de9b
push ecx
mov ecx, ebx
call fcn.0052ca00
jmp 0x52df01
mov edx, dword [edi + 0x30]
test edx, edx
je 0x52deb8
mov eax, dword [edx]
push str.Send_timed_out___So_callback_will_free_the_memory
push str.HTTPConnector
push 0x5f8398
push 0x14
push edx
jmp 0x52defb
mov eax, dword [0x656c44]
test eax, eax
je 0x52dee3
push str.Send_timed_out___So_callback_will_free_the_memory
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x14
call eax
add esp, 0x18
jmp 0x52df01
test ecx, ecx
je 0x52df01
mov eax, dword [ecx]
push str.Send_timed_out___So_callback_will_free_the_memory
push str.HTTPConnector
push 0x5f8398
push 0x14
push ecx
call dword [eax + 0x34]
add esp, 0x14
push 0
lea eax, [ebp - 0x304]
push eax
push 0
push 0
push 0x16
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x52e065
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x52dff2
mov eax, dword [ebp - 0x304]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0057653d
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x304]
push 0
push eax
push ebx
push 0
push 0x16
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x52dfd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x310]
call esi
push dword [ebp - 0x308]
call esi
push ebx
call fcn.00576339
mov ecx, dword [edi + 0x30]
add esp, 4
test ecx, ecx
je 0x52dfa9
mov eax, dword [ecx]
push str.Failed_in_quering_WinHttpHeaders_with_available_memory
push ecx
call dword [eax + 4]
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x2e4]
mov dword [edi + 0xdc], eax
mov byte [edi + 0x118], 1
call fcn.00408870
lea ecx, [ebp - 0x2c0]
call fcn.004087d0
jmp 0x52d0eb
push ebx
lea ecx, [ebp - 0x2c0]
call fcn.004089c0
push ebx
call fcn.00576339
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x320]
test esi, esi
je 0x52e16b
cmp dword [ebp - 0x2b0], 0
sete al
test al, al
jne 0x52e16b
mov edx, dword [edi + 0x30]
test edx, edx
jne 0x52e116
mov ecx, dword [0x656c44]
test ecx, ecx
je 0x52e10c
cmp dword [ebp - 0x2ac], 8
lea eax, [ebp - 0x2c0]
cmovae eax, dword [ebp - 0x2c0]
push eax
push str.Response_header_received_from_the_http_request__s
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0xa
call ecx
add esp, 0x1c
jmp 0x52e145
mov esi, dword [edi + 0x30]
test esi, esi
je 0x52e096
mov esi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push str.Failed_in_quering_WinHttpHeaders_error:_d
push str.HTTPConnector
push 0x5f8398
push 0x28
push dword [edi + 0x30]
call dword [esi + 0x34]
add esp, 0x18
jmp 0x52dff2
cmp dword [0x656c44], 0
je 0x52e0d1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push str.Failed_in_quering_WinHttpHeaders_error:_d
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x28
call dword [0x656c44]
add esp, 0x1c
jmp 0x52dff2
mov edx, dword [0x656c48]
test edx, edx
je 0x52dfec
mov esi, dword [edx]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push str.Failed_in_quering_WinHttpHeaders_error:_d
push str.HTTPConnector
push 0x5f8398
push 0x28
push dword [0x656c48]
call dword [esi + 0x34]
add esp, 0x18
jmp 0x52dff2
mov edx, dword [0x656c48]
test edx, edx
je 0x52e145
cmp dword [ebp - 0x2ac], 8
lea eax, [ebp - 0x2c0]
mov ecx, dword [edx]
cmovae eax, dword [ebp - 0x2c0]
push eax
push str.Response_header_received_from_the_http_request__s
push str.HTTPConnector
push 0x5f8398
push 0xa
push edx
call dword [ecx + 0x34]
add esp, 0x18
mov esi, dword [edi + 0x30]
lea eax, [ebp - 0x2c0]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040d5f0
mov edx, esi
mov esi, dword [ebp - 0x320]
mov ecx, esi
call fcn.0052c000
add esp, 0x18
push str.Content_Encoding
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x21c], 0
call fcn.00408810
lea eax, [ebp - 0x2a8]
mov ecx, esi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004219a0
lea ecx, [ebp - 0x2a8]
call fcn.004087d0
mov eax, dword [ebp - 0x21c]
cmp eax, dword [esi]
je 0x52e284
push 0
push str.gzip
lea ecx, [eax + 0x28]
call fcn.00428450
cmp eax, 0xffffffff
je 0x52e284
xor eax, eax
mov dword [ebp - 0x2e8], 7
mov dword [ebp - 0x2ec], 0
mov word [ebp - 0x2fc], ax
lea edx, [ebp - 0x2fc]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2e4]
call fcn.00518c80
test al, al
je 0x52e21f
mov eax, dword [ebp - 0x31c]
lea ecx, [ebp - 0x2fc]
cmp eax, ecx
je 0x52e275
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00408f10
jmp 0x52e275
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52e25b
mov eax, dword [0x656c44]
test eax, eax
je 0x52e251
push str.Some_error_occured_in_unzip
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x28
call eax
add esp, 0x18
jmp 0x52e275
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52e275
mov eax, dword [ecx]
push str.Some_error_occured_in_unzip
push str.HTTPConnector
push 0x5f8398
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x14
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 0xf
call fcn.004087d0
cmp dword [ebp - 0x220], 0
jne 0x52e39d
mov eax, dword [ebp - 0x314]
cmp byte [eax + 0x75], 0
je 0x52e39d
cmp dword [ebp - 0x300], 0x1bb
jne 0x52e39d
lea eax, [ebp - 0x274]
mov dword [ebp - 0x300], 0
push eax
lea eax, [ebp - 0x300]
mov dword [ebp - 0x274], 4
push eax
push 0x4e
push dword [ebp - 0x30c]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
jne 0x52e2ec
call ebx
jmp 0x52e39d
mov eax, dword [ebp - 0x300]
mov esi, dword [sym.imp.CRYPT32.dll_CertGetIssuerCertificateFromStore]
nop dword [eax + eax]
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push ecx
push 0
push eax
push dword [eax + 0x10]
mov ebx, eax
call esi
test eax, eax
jne 0x52e300
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], eax
mov word [ebp - 0x2a8], ax
lea edx, [ebp - 0x2a8]
mov byte [ebp - 4], 0x11
mov ecx, ebx
call fcn.00539330
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x33c]
call fcn.0052e640
add esp, 4
mov esi, dword [ebp - 0x320]
mov ecx, esi
push eax
mov byte [ebp - 4], 0x12
call fcn.0052e830
push eax
add eax, 0x10
mov ecx, esi
push eax
push 0
lea eax, [ebp - 0x2c8]
push eax
call fcn.004222e0
lea ecx, [ebp - 0x33c]
call fcn.0052e4a0
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0xf
call fcn.004087d0
push ecx
push esi
push dword [ebp - 0x314]
mov ecx, edi
call fcn.0052b3c0
push dword [edi + 0xe0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x30c]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x310]
call esi
push dword [ebp - 0x308]
call esi
lea ecx, [ebp - 0x2e4]
call fcn.00408870
lea ecx, [ebp - 0x2c0]
call fcn.004087d0
lea ecx, [ebp - 0x258]
call fcn.004087d0
lea ecx, [ebp - 0x240]
call fcn.00408870
lea ecx, [ebp - 0x270]
call fcn.00408870
lea ecx, [ebp - 0x290]
call fcn.004087d0
mov eax, dword [ebp - 0x220]
jmp 0x52e47b
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x52e45c
mov eax, dword [0x656c44]
test eax, eax
je 0x52e452
push str.Invalid_arguments_to_SendHTTPRequest
push 0x5f8398
push 0x5f8398
push str.HTTPConnector
push 0x61c4f4
push 0x32
call eax
add esp, 0x18
jmp 0x52e476
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x52e476
mov eax, dword [ecx]
push str.Invalid_arguments_to_SendHTTPRequest
push str.HTTPConnector
push 0x5f8398
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
mov eax, 4
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.0057608a
mov esp, ebp
pop ebp
ret 0x10