Function at 0x523430
Capabilities:
Initialize winhttp library
Prepare http request
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2670
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x629688]
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]
mov ecx, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x20]
push 0x1c
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x60], 0
call fcn.00585fec
mov edi, eax
add esp, 4
cmp dword [ebp - 0x6c], 0
mov dword [edi + 0x18], 0
je 0x5238dd
test esi, esi
je 0x5238dd
test ebx, ebx
je 0x5238dd
cmp byte [ebx], 0
je 0x5238dd
mov eax, dword [0x5c5de0]
movq xmm0, qword [str.CancelPort]
mov dword [ebp - 0x18], eax
mov ax, word [0x5c5de4]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x28]
push eax
push 0
movq qword [ebp - 0x28], xmm0
movq xmm0, qword [0x5c5dd8]
push 0
push 0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x64], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x78]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x523538
mov eax, dword [eax]
mov byte [eax], 0
lea ecx, [ebx + 1]
mov edi, edi
mov al, byte [ebx]
inc ebx
test al, al
jne 0x523540
mov byte [ebp - 0x59], al
mov eax, dword [ebp - 0x7c]
sub ebx, ecx
cmp word [eax], 0
push 0x10000000
push 0
jne 0x523562
push 0
push 0
jmp 0x523565
push eax
push 3
push str.RENGA_CLIENT
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x84], eax
test eax, eax
je 0x523876
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x6c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x80], eax
test eax, eax
je 0x52386f
push 0x800000
push 0
push 0
push 0
push esi
push str.POST
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x523868
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push 0x20000000
push 0xffffffffffffffff
push str.Host:_ops
push eax
call esi
push 0x20000000
push 0xffffffffffffffff
push str.User_Agent:_SA
push dword [ebp - 0x60]
call esi
push 0x20000000
push 0xffffffffffffffff
push str.Content_Type:_text_xml__charsetutf_8
push dword [ebp - 0x60]
call esi
push 0x20000000
push 0xffffffffffffffff
push str.Connection:_close
push dword [ebp - 0x60]
call esi
mov esi, dword [ebp - 0x60]
push 4
lea eax, [ebp - 0x6c]
push eax
push 6
push esi
mov dword [ebp - 0x6c], 0x7530
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0x17f0c00
push 0x524d30
push esi
mov dword [edi + 0x10], eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
je 0x523861
mov eax, dword [ebp - 0x7c]
cmp word [eax], 0
je 0x52378b
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x52378b
cmp byte [eax], 0
je 0x52378b
cmp dword [ebp - 0x74], 0
je 0x52378b
push str.Using_user_name_and_password_provided_for_proxy_authentication.
push dword [0x61acf8]
push 5
push str.RengaInterface
push dword [0x62fd20]
call fcn.00525c50
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
push dword [0x62fd20]
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x88]
push eax
mov byte [ebp - 4], 1
call fcn.005254b0
add esp, 0x20
test al, al
je 0x52376a
push dword [0x62fd20]
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x74]
call fcn.005254b0
add esp, 0xc
test al, al
je 0x52376a
cmp dword [ebp - 0x2c], 8
push 0
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x44], 8
push ecx
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
push 1
push 1
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x52374a
push str.updated_proxy_credentials_for_the_HTTP_request
push dword [0x61acf8]
push 4
push str.RengaInterface
push dword [0x62fd20]
call fcn.00525c50
mov byte [ebp - 0x59], 1
mov dword [edi + 0x18], 1
jmp 0x523767
push str.Failed_to_set_proxy_credentials_for_the_authentication
push dword [0x61acf8]
push 2
push str.RengaInterface
push dword [0x62fd20]
call fcn.00525c50
add esp, 0x14
lea ecx, [ebp - 0x40]
call fcn.00408010
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.00408010
cmp byte [ebp - 0x59], 1
jne 0x523896
mov eax, dword [ebp - 0x70]
push edi
push ebx
push ebx
push dword [ebp - 0x8c]
mov dword [edi + 0x10], eax
xor eax, eax
push eax
push eax
push esi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov word [edi + 0x14], ax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov ebx, dword [ebp - 0x64]
cmp eax, 1
jne 0x52383a
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x28]
imul eax, eax, 0x3e8
push eax
push 0
lea eax, [ebp - 0x94]
push eax
push 2
mov dword [ebp - 0x90], ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x60]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
test esi, esi
jne 0x523814
movzx ecx, word [edi + 0x14]
mov dword [ebp - 0x68], ecx
jmp 0x52383a
cmp esi, 1
jne 0x523822
mov dword [ebp - 0x68], 0xd001
jmp 0x52383a
cmp esi, 0x102
jne 0x523833
mov dword [ebp - 0x68], 0xd002
jmp 0x52383a
movzx eax, word [edi + 0x14]
mov dword [ebp - 0x68], eax
mov eax, dword [edi]
test eax, eax
je 0x523899
cmp dword [edi + 0xc], 1
jne 0x52384f
mov ecx, dword [ebp - 0x78]
push eax
call fcn.00414760
push dword [edi]
call fcn.005864b7
add esp, 4
mov dword [edi], 0
jmp 0x523899
push str.Error_setting_callback
jmp 0x52387b
push str.Error_opening_request
jmp 0x52387b
push str.Error_connecting_to_server
jmp 0x52387b
push str.Error_opening_connection
push dword [0x61acf8]
push 5
push str.RengaInterface
push dword [0x62fd20]
call fcn.00525c50
add esp, 0x14
mov ebx, dword [ebp - 0x64]
push edi
call fcn.0058603b
mov eax, dword [ebp - 0x60]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 4
test eax, eax
je 0x5238b2
push eax
call esi
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x5238bc
push eax
call esi
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x5238c9
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x70]
call esi
mov ax, word [ebp - 0x68]
jmp 0x523902
push str.Server_Info_missing
push dword [0x61acf8]
push 4
push str.RengaInterface
push dword [0x62fd20]
call fcn.00525c50
add esp, 0x14
mov eax, 0xffff
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.00586d1b
mov esp, ebp
pop ebp
ret