Function at 0x432470
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549635
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x595978]
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 esi, edx
push 0xffffffffffffffff
xor ebx, ebx
push ebx
mov dword [ebp - 0x188], ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov dword [ebp - 0x180], esi
mov dword [ebp - 0x164], eax
mov word [esi], dx
call fcn.0040d880
mov dword [ebp - 4], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x40], ebx
lea edi, [esi + 0x48]
mov dword [ebp - 0x168], edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
lea eax, [esi + 0x50]
mov dword [ebp - 0x17c], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea eax, [esi + 0x58]
mov dword [ebp - 0x184], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov esi, 0xf
mov byte [ebp - 4], 5
push esi
push str.http_client.cpp
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00410af0
mov byte [ebp - 4], 6
push 0x1f
push 0x57b15c
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00410af0
lea eax, [ebp - 0x48]
push eax
mov edx, 0xe0
lea ecx, [ebp - 0x2c]
lea ebx, [ebp - 0x118]
mov byte [ebp - 4], 7
call fcn.00430970
mov esi, 0x10
cmp dword [ebp - 0x34], esi
jb 0x432577
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0049cf83
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x18], esi
jb 0x43259b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0049cf83
add esp, 4
test byte [0x5b0b2c], 1
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
jne 0x4325d7
or dword [0x5b0b2c], 1
push 0x5b0b14
mov dword [0x5b0b10], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x54b980
call fcn.0049ddb1
add esp, 4
push 0x5b0b14
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5b0b10], 0x3e8
push 0x5b0b14
setbe bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x432705
test byte [0x5b0b90], 1
jne 0x432636
or dword [0x5b0b90], 1
mov byte [ebp - 4], 0xb
call fcn.0040e5d0
push 0x54b970
mov dword [0x5b0988], 0x578cc0
call fcn.0049ddb1
add esp, 4
mov byte [ebp - 4], 0xa
lea esi, [ebp - 0x230]
mov eax, 0x5b0988
call fcn.0040b920
push 0x57aa58
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x164]
push ecx
push str.Getting_request_to_
push 0x577db0
push 0xe1
push 0x577be4
push str.http_client.cpp
add eax, 8
push str.__DBG____
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00416190
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409560
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.004169b0
add esp, 8
push eax
call fcn.00415b80
add esp, 8
mov byte [ebp - 4], 0xd
cmp byte [ebp - 0x190], 0
je 0x4326f6
lea edx, [ebp - 0x228]
push edx
lea esi, [ebp - 0x160]
call fcn.0040e710
mov byte [ebp - 4], 0xe
mov edi, dword [ebp - 0x230]
push eax
call fcn.0040e690
call fcn.0040cc40
mov edi, dword [ebp - 0x168]
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xa
call fcn.004030b0
mov eax, dword [ebp - 0x164]
push eax
lea esi, [ebp - 0xdc]
call fcn.00430d90
push 0
push 0
push 0
push 1
push str.PsafeGeneric
mov byte [ebp - 4], 0xf
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
call fcn.00434750
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, dword [ebp - 0x168]
cmp dword [edi], 0
mov ebx, eax
jne 0x432831
lea ecx, [ebp - 0x220]
push ecx
call fcn.0040a0e0
push ebx
push str.._Last_win_error
push 0xea
push str._at_line
push str._http_client.cpp_
push str._at_file
push str.session_
push str.._Failed_expression_
lea edx, [ebp - 0x220]
push str.Failed_to_open_win_http_session
push edx
mov byte [ebp - 4], 0x10
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409560
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409730
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x220]
call fcn.0040a180
mov ecx, eax
lea ebx, [ebp - 0x48]
mov byte [ebp - 4], 0x11
call fcn.004045b0
mov byte [ebp - 4], 0x12
cmp dword [eax + 0x14], 0x10
jb 0x4327fe
mov eax, dword [eax]
mov dword [ebp - 0x164], eax
lea ecx, [ebp - 0x164]
push ecx
lea ecx, [ebp - 0x174]
call fcn.0049ce20
push 0x58c098
lea edx, [ebp - 0x174]
push edx
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
call fcn.004a60bb
mov eax, dword [edi]
push 0x36ee80
push 0x36ee80
push 0x36ee80
push 0x36ee80
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x43290d
call esi
mov dword [ebp - 0x178], eax
call fcn.00403ae0
mov esi, eax
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi], 0xbb8
push edi
setbe bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x432907
call fcn.00403a70
lea esi, [ebp - 0x230]
call fcn.0040b920
mov ecx, dword [ebp - 0x178]
push ecx
push str.Failed_to_set_up_http_timeouts._Last_error
push 0x577db0
push 0xf0
push 0x577be4
push str.http_client.cpp
add eax, 8
push str.__WARN___
push eax
mov byte [ebp - 4], 0x13
call fcn.00415b80
add esp, 8
push eax
call fcn.00416190
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409560
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409730
mov ebx, esi
mov byte [ebp - 4], 0xf
call fcn.0040b9a0
mov edi, dword [ebp - 0x168]
push edi
call fcn.00431100
mov ecx, dword [ebp - 0xd8]
mov esi, 8
add esp, 4
cmp dword [ebp - 0xc4], esi
jae 0x43292f
lea ecx, [ebp - 0xd8]
mov edx, dword [ebp - 0xbc]
mov eax, dword [edi]
push 0
push edx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, dword [ebp - 0x17c]
call fcn.00434750
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi], 0
mov ebx, eax
jne 0x432a4b
lea eax, [ebp - 0x220]
push eax
call fcn.0040a0e0
push ebx
push str.._Last_win_error
push 0xfa
push str._at_line
push str._http_client.cpp_
push str._at_file
push str.connect_
push str.._Failed_expression_
lea ecx, [ebp - 0x220]
push str.Failed_to_open_win_http_connect
push ecx
mov byte [ebp - 4], 0x14
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409560
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409730
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x220]
call fcn.0040a180
mov ecx, eax
lea ebx, [ebp - 0x48]
mov byte [ebp - 4], 0x15
call fcn.004045b0
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x14], 0x10
jb 0x432a18
mov edx, dword [eax]
mov dword [ebp - 0x164], edx
jmp 0x432a1e
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x174]
call fcn.0049ce20
push 0x58c098
lea ecx, [ebp - 0x174]
push ecx
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
call fcn.004a60bb
lea edx, [ebp - 0xb8]
push edx
lea eax, [ebp - 0x80]
push eax
lea ebx, [ebp - 0x9c]
call fcn.00416900
add esp, 8
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], esi
jae 0x432a73
lea eax, [ebp - 0x80]
movzx ecx, byte [ebp - 0xdc]
mov edi, dword [edi]
neg ecx
sbb ecx, ecx
and ecx, 0x800000
push ecx
push 0
push 0
push 0
push eax
push 0x57b2c8
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, dword [ebp - 0x184]
mov edi, esi
call fcn.00434750
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi], 0
mov edi, eax
jne 0x432ba5
lea edx, [ebp - 0x220]
push edx
call fcn.0040a0e0
push edi
push str.._Last_win_error
push 0x10c
push str._at_line
push str._http_client.cpp_
push str._at_file
push str.request_
push str.._Failed_expression_
lea eax, [ebp - 0x220]
push str.Failed_to_create_http_request
push eax
mov byte [ebp - 4], 0x18
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409560
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409730
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x220]
call fcn.0040a180
mov ecx, eax
lea ebx, [ebp - 0x48]
mov byte [ebp - 4], 0x19
call fcn.004045b0
mov byte [ebp - 4], 0x1a
cmp dword [eax + 0x14], 0x10
jb 0x432b72
mov ecx, dword [eax]
mov dword [ebp - 0x164], ecx
jmp 0x432b78
mov dword [ebp - 0x164], eax
lea edx, [ebp - 0x164]
push edx
lea ecx, [ebp - 0x174]
call fcn.0049ce20
push 0x58c098
lea eax, [ebp - 0x174]
push eax
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::runtime_error.0
call fcn.004a60bb
xor ecx, ecx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], cx
mov ebx, dword [ebp - 0x188]
mov byte [ebp - 4], 0x1b
mov edi, dword [ebx]
cmp edi, dword [ebx + 4]
je 0x432c12
lea ebx, [ebx]
lea edx, [ebp - 0x2c]
push edi
push edx
call fcn.004305e0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x1c
call fcn.004112b0
mov byte [ebp - 4], 0x1b
cmp dword [ebp - 0x18], 8
jb 0x432c04
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049cf83
add esp, 4
add edi, 0x1c
cmp edi, dword [ebx + 4]
jne 0x432bd0
cmp dword [ebp - 0x54], 0
jne 0x432c16
xor ecx, ecx
jmp 0x432c22
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
jae 0x432c22
lea ecx, [ebp - 0x64]
mov eax, dword [esi]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov ebx, eax
cmp edi, esi
jne 0x432d84
lea ecx, [ebp - 0x220]
push ecx
call fcn.0040a0e0
mov byte [ebp - 4], 0x1d
cmp byte [ebp - 0xdc], 0
mov eax, str.https
jne 0x432c6d
mov eax, str.http
push ebx
push str.._Last_win_error
push 0x120
mov ecx, dword [ebp - 0x164]
push str._at_line
push str._http_client.cpp_
push str._at_file
push str.WinHttpSendRequest___request_.get____headers_str.empty_____0_:_headers_str.c_str_____1__nullptr__0__0__0__
push str.._Failed_expression_
lea edx, [ebp - 0xb8]
push edx
push str._to_url_path_
push eax
push str._using
lea eax, [ebp - 0xd8]
push eax
push str._to_server_
push ecx
lea edx, [ebp - 0x220]
push str.Failed_to_send_request_to_url_
push edx
call fcn.00415b80
add esp, 8
push eax
call fcn.004169b0
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.004169b0
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.004169b0
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409560
push eax
call fcn.00415b80
add esp, 8
push eax
call fcn.00409730
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x220]
call fcn.0040a180
mov ecx, eax
lea ebx, [ebp - 0x48]
mov byte [ebp - 4], 0x1e
call fcn.004045b0
mov byte [ebp - 4], 0x1f
cmp dword [eax + 0x14], 0x10
jb 0x432d73
mov eax, dword [eax]
mov dword [ebp - 0x168], eax
lea ecx, [ebp - 0x168]
jmp 0x43280a
mov ebx, 8
cmp dword [ebp - 0x50], ebx
jb 0x432d9a
mov eax, dword [ebp - 0x64]
push eax
call fcn.0049cf83
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x6c], ebx
jb 0x432dbc
mov edx, dword [ebp - 0x80]
push edx
call fcn.0049cf83
add esp, 4
mov dword [ebp - 0x70], esi
xor eax, eax
lea esi, [ebp - 0xdc]
mov dword [ebp - 0x6c], edi
mov word [ebp - 0x80], ax
call fcn.00432e10
lea ebx, [ebp - 0x118]
mov byte [ebp - 4], 5
call fcn.00430b70
mov eax, dword [ebp - 0x180]
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.0049cc86
mov esp, ebp
pop ebp
ret 4