Function at 0x414d74
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string
Send data
Send http request

Disassembly:
push 0x170
mov eax, 0x46c178
call fcn.0042a2ac
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
push 0x38
lea eax, [ebp - 0x178]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.0042ccd0
or eax, 0xffffffff
mov dword [ebp - 0x17c], 0x3c
add esp, 0xc
mov dword [ebp - 0x174], eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x154], eax
jb 0x414dee
mov eax, dword [esi]
jmp 0x414df0
mov eax, esi
lea ecx, [ebp - 0x17c]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x414e5f
push esi
mov edx, str.Cant_parse:
lea ecx, [ebp - 0x2c]
call fcn.00409bf6
mov esi, eax
xor ebx, ebx
push ecx
inc ebx
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], bl
call fcn.0040fe2b
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 2
test eax, eax
je 0x414e41
mov edx, esi
lea ecx, [ebp - 0x12c]
call fcn.0041080b
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], bl
call fcn.0040fba3
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004041d3
jmp 0x415434
push ebx
push ebx
push ebx
push ebx
push str.Mozilla___5.0__Windows_NT_6.3__WOW64__Trident___7.0__rv:11.0__like_Gecko
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0x74], ebx
test ebx, ebx
je 0x4153fa
push dword [ebp + 0x14]
mov eax, 0x3e8
push dword [ebp + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x4153d8
mov ecx, dword [ebp - 0x16c]
xor edx, edx
mov eax, dword [ebp - 0x168]
push dword [ebp - 0x74]
and dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
lea eax, [ecx + eax*2]
mov word [ebp - 0x5c], dx
push eax
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00404c5a
mov byte [ebp - 4], 3
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
push 0
push dword [ebp - 0x164]
cmovae eax, dword [ebp - 0x5c]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
mov dword [ebp - 0x88], ebx
test ebx, ebx
je 0x41538a
cmp dword [esi + 0x14], 8
jb 0x414efd
mov ecx, dword [esi]
jmp 0x414eff
mov ecx, esi
mov eax, dword [esi + 0x10]
lea edx, [ecx + eax*2]
mov ecx, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x168]
lea ecx, [ecx + eax*2]
cmp ecx, edx
jae 0x414f3f
push 9
pop ebx
movzx esi, word [ecx]
mov eax, esi
cmp eax, 0x20
je 0x414f32
cmp eax, 0x3a
je 0x414f32
lea eax, [esi - 0x30]
cmp ax, bx
ja 0x414f39
add ecx, 2
cmp ecx, edx
jb 0x414f1b
mov ebx, dword [ebp - 0x88]
push 0
sub edx, ecx
mov dword [ebp - 0x30], 7
pop eax
sar edx, 1
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 4
je 0x414f62
push edx
push ecx
jmp 0x414f70
mov esi, 0x478264
push esi
call fcn.0040359e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.004044a7
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
push str.POST
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x415340
push 4
lea eax, [ebp - 0x8c]
xor ebx, ebx
push eax
push 0x3f
inc ebx
push esi
mov dword [ebp - 0x8c], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x4152e9
and dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 5
cmp dword [eax + 0x10], 0
jne 0x414ff4
push str.Content_Type:_multipart_form_data__boundary4jhf94jdfksjhf452f186c710c89c4_r_n
call fcn.0040359e
pop ecx
push eax
push str.Content_Type:_multipart_form_data__boundary4jhf94jdfksjhf452f186c710c89c4_r_n
jmp 0x415005
push str.Content_Type:_application_json__r_n
call fcn.0040359e
pop ecx
push eax
push str.Content_Type:_application_json__r_n
lea ecx, [ebp - 0x2c]
call fcn.004044a7
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
push ecx
push dword [ebp + 0xc]
push ecx
push ecx
push dword [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4152c0
and dword [ebp - 0x84], 0
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x70]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
je 0x415297
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x84], eax
jne 0x41526e
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x415245
and dword [ebp - 0x64], 0
lea eax, [ebp - 0x6c]
and dword [ebp - 0x6c], 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x415144
push ecx
push ecx
lea ecx, [ebp - 0x13c]
call fcn.0040fe2b
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x4150bc
mov edx, str.Cant_query_data_available
lea ecx, [ebp - 0x12c]
call fcn.00409c8e
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 5
call fcn.0040fba3
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.00403ef6
jmp 0x4151d5
push eax
lea ecx, [ebp - 0x80]
call fcn.00415481
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x80]
and dword [ebp - 0x70], 0
push ecx
push eax
push dword [ebp - 0x80]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x41521c
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
jne 0x4151fa
push dword [ebp - 0x74]
lea ecx, [ebp - 0x68]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x64]
call fcn.004154b8
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x415186
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.00403f7f
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x4150db
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004041d3
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0x88]
call esi
push 0
push ebx
lea ecx, [ebp - 0x44]
call fcn.004041d3
push 0
push ebx
lea ecx, [ebp - 0x5c]
call fcn.004041d3
push dword [ebp - 0x74]
call esi
jmp 0x415434
push ecx
push ecx
lea ecx, [ebp - 0x13c]
call fcn.0040fe2b
push 9
pop eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x13c]
test eax, eax
je 0x4151b3
mov edx, str.Cant_query_data_available
lea ecx, [ebp - 0x12c]
call fcn.00409c8e
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 6
call fcn.0040fba3
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.00403ef6
lea ecx, [ebp - 0x80]
call fcn.00403f7f
xor esi, esi
lea ecx, [ebp - 0x2c]
push esi
push ebx
call fcn.004041d3
push esi
push ebx
lea ecx, [ebp - 0x44]
call fcn.004041d3
push esi
push ebx
lea ecx, [ebp - 0x5c]
call fcn.004041d3
jmp 0x41543f
push ecx
push ecx
lea ecx, [ebp - 0x13c]
call fcn.0040fe2b
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 7
test eax, eax
je 0x4151b3
mov edx, str.Read_data_doesnt_equal_sended_data
jmp 0x4151a8
push ecx
push ecx
lea ecx, [ebp - 0x13c]
call fcn.0040fe2b
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 8
test eax, eax
je 0x4151b3
mov edx, str.Cant_read_data
jmp 0x4151a8
push ecx
push ecx
lea ecx, [ebp - 0x13c]
call fcn.0040fe2b
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x4150bc
mov edx, str.Cant_receive_response
jmp 0x4150b1
push ecx
push ecx
lea ecx, [ebp - 0x13c]
call fcn.0040fe2b
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x4150bc
mov edx, str.Written_data_doesnt_equal_sended_data
jmp 0x4150b1
push ecx
push ecx
lea ecx, [ebp - 0x13c]
call fcn.0040fe2b
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x4150bc
mov edx, str.Cant_write_data
jmp 0x4150b1
push ecx
push ecx
lea ecx, [ebp - 0x13c]
call fcn.0040fe2b
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0xe
test eax, eax
je 0x4150bc
mov edx, str.Cant_send_request
jmp 0x4150b1
push ecx
push ecx
lea ecx, [ebp - 0x13c]
call fcn.0040fe2b
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0xf
test eax, eax
je 0x415314
mov edx, str.Cant_set_options
lea ecx, [ebp - 0x12c]
call fcn.00409c8e
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 4
call fcn.0040fba3
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.00403ef6
push 0
push ebx
lea ecx, [ebp - 0x44]
call fcn.004041d3
push 0
jmp 0x4151ec
push ecx
push ecx
lea ecx, [ebp - 0x13c]
call fcn.0040fe2b
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0x10
test eax, eax
je 0x41536b
mov edx, str.Cant_open_request
lea ecx, [ebp - 0x12c]
call fcn.00409c8e
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 4
call fcn.0040fba3
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.00403ef6
xor ebx, ebx
inc ebx
jmp 0x41532e
push ecx
push ecx
lea ecx, [ebp - 0x13c]
call fcn.0040fe2b
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0x11
test eax, eax
je 0x4153b5
mov edx, str.Cant_connect
lea ecx, [ebp - 0x12c]
call fcn.00409c8e
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 3
call fcn.0040fba3
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.00403ef6
push 0
push 1
jmp 0x4151ed
push ecx
push ecx
lea ecx, [ebp - 0x13c]
call fcn.0040fe2b
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0x12
test eax, eax
je 0x415425
mov edx, str.Cant_set_timeouts
jmp 0x41541a
push ecx
push ecx
lea ecx, [ebp - 0x13c]
call fcn.0040fe2b
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0x13
test eax, eax
je 0x415425
mov edx, str.Cant_open_session
lea ecx, [ebp - 0x12c]
call fcn.00409c8e
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0
call fcn.0040fba3
lea eax, [ebp - 0x68]
mov ecx, edi
push eax
call fcn.00403ef6
lea ecx, [ebp - 0x68]
call fcn.00403f7f
mov eax, edi
call fcn.0042a25b
ret