Function at 0x429c34
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push 0xf8
mov eax, 0x4d0f75
call fcn.0044daf4
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0xc0], edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0xe8], edx
mov edx, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0x104], edx
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xcc], esi
cmp ecx, ebx
jne 0x429cb4
push str.No_comsumer_provided_
lea eax, [ebp - 0x34]
push eax
call fcn.00404c84
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x34]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00405528
push 1
lea esi, [ebp - 0x34]
xor edi, edi
call fcn.00401198
jmp 0x42a678
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x429cbf
mov edi, dword [edi]
xor ecx, ecx
mov word [edi], cx
cmp dword [eax + 0x14], 8
jb 0x429ccc
mov eax, dword [eax]
xor edi, edi
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0xac], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp eax, edi
jne 0x429d3f
push str.WinHttpOpen_failed:
lea eax, [ebp - 0x34]
push eax
call fcn.00404c84
mov ecx, dword [ebp - 0xb4]
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00405528
push ebx
lea esi, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.00401198
lea eax, [ebp - 0x50]
push eax
call fcn.00420059
pop ecx
mov esi, dword [ebp - 0xb4]
push edi
push eax
or eax, 0xffffffff
mov byte [ebp - 4], 3
call fcn.004058b2
push ebx
lea esi, [ebp - 0x50]
jmp 0x429ca8
cmp esi, edi
je 0x429d83
push edi
mov eax, esi
call fcn.00421f30
test al, al
je 0x429d83
push str.Cancel_event
lea eax, [ebp - 0x34]
push eax
call fcn.00404c84
mov ecx, dword [ebp - 0xb4]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00405528
lea esi, [ebp - 0x34]
xor edi, edi
push ebx
call fcn.00401198
jmp 0x42a66c
push 7
pop eax
xor ecx, ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], edi
mov word [ebp - 0x88], cx
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x5c], edi
mov word [ebp - 0x6c], ax
push dword [ebp - 0xb4]
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xb8]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xa8], edi
call fcn.004294bf
add esp, 0x14
test al, al
jne 0x429df5
push ebx
xor edi, edi
lea esi, [ebp - 0x6c]
call fcn.00401198
lea esi, [ebp - 0x88]
jmp 0x429d76
cmp esi, edi
je 0x429e36
push edi
mov eax, esi
call fcn.00421f30
test al, al
je 0x429e36
push str.Cancel_event
lea eax, [ebp - 0x34]
push eax
call fcn.00404c84
mov ecx, dword [ebp - 0xb4]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.00405528
lea esi, [ebp - 0x34]
xor edi, edi
push ebx
call fcn.00401198
jmp 0x429de2
cmp dword [ebp - 0x74], 8
mov eax, dword [ebp - 0x88]
jae 0x429e48
lea eax, [ebp - 0x88]
push edi
push dword [ebp - 0xb0]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 8
cmp eax, edi
jne 0x429ec3
push str.WinHttpConnect_failed:
lea eax, [ebp - 0x34]
push eax
call fcn.00404c84
mov ecx, dword [ebp - 0xb4]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 9
call fcn.00405528
push ebx
xor edi, edi
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 8
call fcn.00401198
lea eax, [ebp - 0x50]
push eax
call fcn.00420059
pop ecx
mov esi, dword [ebp - 0xb4]
push edi
push eax
or eax, 0xffffffff
mov byte [ebp - 4], 0xa
call fcn.004058b2
lea esi, [ebp - 0x50]
jmp 0x429e2c
cmp esi, edi
je 0x429f13
push edi
mov eax, esi
call fcn.00421f30
test al, al
je 0x429f13
push str.Cancel_event
lea eax, [ebp - 0x34]
push eax
call fcn.00404c84
mov ecx, dword [ebp - 0xb4]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.00405528
lea esi, [ebp - 0x34]
xor edi, edi
push ebx
call fcn.00401198
push dword [ebp - 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x429de2
cmp dword [ebp - 0xa8], 2
jne 0x429f23
mov ecx, 0x800000
jmp 0x429f25
xor ecx, ecx
cmp dword [ebp - 0x58], 8
mov eax, dword [ebp - 0x6c]
jae 0x429f31
lea eax, [ebp - 0x6c]
push ecx
push edi
push edi
push edi
push eax
push dword [ebp - 0x104]
push dword [ebp - 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0xa8], esi
mov byte [ebp - 4], 0xc
cmp esi, edi
jne 0x429fb1
push str.WinHttpOpenRequest_failed:
lea eax, [ebp - 0x34]
push eax
call fcn.00404c84
mov ecx, dword [ebp - 0xb4]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.00405528
push ebx
xor edi, edi
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call fcn.00401198
lea eax, [ebp - 0x50]
push eax
call fcn.00420059
pop ecx
mov esi, dword [ebp - 0xb4]
push edi
push eax
or eax, 0xffffffff
mov byte [ebp - 4], 0xe
call fcn.004058b2
lea esi, [ebp - 0x50]
jmp 0x429efa
cmp dword [ebp + 0x10], edi
je 0x429fc1
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00429659
pop ecx
mov ecx, dword [ebp - 0xe8]
lea eax, [ebp - 0xdc]
push eax
call fcn.0042ac7f
mov ecx, dword [ebp - 0xc8]
lea edx, [ebp - 0xdc]
mov byte [ebp - 4], 0xf
mov eax, dword [ecx]
push edx
call dword [eax + 8]
test al, al
jne 0x42a042
push str.Consumers_AddHeaders_failed.
lea eax, [ebp - 0x34]
push eax
call fcn.00404c84
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0xb4]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x34]
call fcn.00405528
lea esi, [ebp - 0x34]
push ebx
xor edi, edi
call fcn.00401198
lea esi, [ebp - 0xdc]
call fcn.0041a790
push dword [ebp - 0xa8]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0xb0]
call esi
jmp 0x429de2
mov ecx, dword [ebp - 0xb4]
lea eax, [ebp - 0xdc]
push eax
push esi
call fcn.0042995a
pop ecx
pop ecx
test al, al
je 0x42a01c
mov eax, dword [ebp - 0xcc]
cmp eax, edi
je 0x42a086
push edi
call fcn.00421f30
test al, al
je 0x42a086
push str.Cancel_event
lea eax, [ebp - 0x34]
push eax
call fcn.00404c84
mov byte [ebp - 4], 0x11
jmp 0x429fff
mov eax, dword [ebp - 0xc0]
mov edx, dword [eax]
mov esi, dword [eax + 4]
cmp edx, esi
jne 0x42a09d
mov dword [ebp - 0xb8], edi
jmp 0x42a0a7
mov eax, esi
sub eax, edx
mov dword [ebp - 0xb8], eax
cmp edx, esi
jne 0x42a0af
xor ecx, ecx
jmp 0x42a0b3
mov ecx, esi
sub ecx, edx
push edi
push dword [ebp - 0xb8]
mov eax, edx
sub eax, esi
neg eax
push ecx
sbb eax, eax
and eax, edx
push eax
push edi
push edi
push dword [ebp - 0xa8]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x42a132
push str.WinHttpSendRequest_failed:
lea eax, [ebp - 0x34]
push eax
call fcn.00404c84
mov ecx, dword [ebp - 0xb4]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x12
call fcn.00405528
push ebx
xor edi, edi
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 0xf
call fcn.00401198
lea eax, [ebp - 0x50]
push eax
call fcn.00420059
pop ecx
mov byte [ebp - 4], 0x13
mov esi, dword [ebp - 0xb4]
push 0
push eax
or eax, 0xffffffff
call fcn.004058b2
lea esi, [ebp - 0x50]
jmp 0x42a014
mov eax, dword [ebp - 0xcc]
cmp eax, edi
je 0x42a15d
push edi
call fcn.00421f30
test al, al
je 0x42a15d
push str.Cancel_event
lea eax, [ebp - 0x34]
push eax
call fcn.00404c84
mov byte [ebp - 4], 0x14
jmp 0x429fff
push edi
push dword [ebp - 0xa8]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x42a1b4
push str.WinHttpReceiveResponse_failed:
lea eax, [ebp - 0x34]
push eax
call fcn.00404c84
mov ecx, dword [ebp - 0xb4]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x15
call fcn.00405528
push ebx
xor edi, edi
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 0xf
call fcn.00401198
lea eax, [ebp - 0x50]
push eax
call fcn.00420059
pop ecx
mov byte [ebp - 4], 0x16
jmp 0x42a119
xor eax, eax
mov dword [ebp - 0x90], 7
mov dword [ebp - 0x94], edi
mov word [ebp - 0xa4], ax
mov edx, dword [ebp - 0xb4]
mov byte [ebp - 4], 0x17
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
call fcn.004296d6
pop ecx
test al, al
jne 0x42a1f8
lea esi, [ebp - 0xa4]
jmp 0x42a014
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov ecx, dword [ebp - 0xb4]
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x18
push eax
lea edx, [ebp - 0xa4]
mov dword [ebp - 0xb8], edi
call fcn.0042a7b5
pop ecx
pop ecx
test al, al
jne 0x42a237
lea esi, [ebp - 0x28]
call fcn.0041a790
jmp 0x42a1ed
mov esi, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xb8]
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0042947c
test al, al
jne 0x42a282
push str.Consumers_SetHeaders_failed.
lea eax, [ebp - 0x50]
push eax
call fcn.00404c84
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0xb4]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
call fcn.00405528
push ebx
xor edi, edi
lea esi, [ebp - 0x50]
call fcn.00401198
jmp 0x42a22d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
test al, al
jne 0x42a2a1
push str.Consumers_ConsumePrepare_failed.
lea eax, [ebp - 0x50]
push eax
call fcn.00404c84
mov byte [ebp - 4], 0x1a
jmp 0x42a263
lea ecx, [ebp - 0x28]
call fcn.004298c4
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xe8], edx
cmp eax, edi
je 0x42a2dd
push edi
call fcn.00421f30
test al, al
je 0x42a2dd
push str.Cancel_event
lea eax, [ebp - 0x50]
push eax
call fcn.00404c84
mov byte [ebp - 4], 0x1b
jmp 0x42a263
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0x100], edi
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0xf8], edi
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc0], edi
mov ecx, dword [ebp - 0xec]
mov eax, dword [ebp - 0xe8]
mov edx, ecx
or edx, eax
je 0x42a337
cmp dword [ebp - 0xc0], eax
ja 0x42a3d1
jb 0x42a337
cmp dword [ebp - 0xc4], ecx
jae 0x42a3d1
lea eax, [ebp - 0xe0]
push eax
push dword [ebp - 0xa8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x42a3c3
push str.WinHttpQueryDataAvailable_failed:
lea eax, [ebp - 0x50]
push eax
call fcn.00404c84
mov ecx, dword [ebp - 0xb4]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x1d
call fcn.00405528
push ebx
xor edi, edi
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 0x1c
call fcn.00401198
lea eax, [ebp - 0x50]
push eax
call fcn.00420059
pop ecx
mov byte [ebp - 4], 0x1e
mov esi, dword [ebp - 0xb4]
push 0
push eax
or eax, 0xffffffff
call fcn.004058b2
push ebx
xor edi, edi
lea esi, [ebp - 0x50]
call fcn.00401198
lea esi, [ebp - 0x100]
call fcn.0041a6ce
lea esi, [ebp - 0x28]
call fcn.0041a790
jmp 0x42a60c
mov esi, dword [ebp - 0xe0]
cmp esi, edi
jne 0x42a462
mov ecx, dword [ebp - 0xc8]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea esi, [ebp - 0x100]
call fcn.0041a6ce
lea esi, [ebp - 0x28]
call fcn.0041a790
push ebx
xor edi, edi
lea esi, [ebp - 0xa4]
call fcn.00401198
lea esi, [ebp - 0xdc]
call fcn.0041a790
cmp dword [ebp - 0xa8], edi
je 0x42a41c
push dword [ebp - 0xa8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0xb0], edi
je 0x42a430
push dword [ebp - 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
xor edi, edi
lea esi, [ebp - 0x6c]
call fcn.00401198
push ebx
lea esi, [ebp - 0x88]
call fcn.00401198
cmp dword [ebp - 0xac], edi
je 0x42a45b
push dword [ebp - 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov al, bl
jmp 0x42a67a
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0x1f
call fcn.0040a963
lea eax, [ebp - 0xf0]
push eax
mov dword [ebp - 4], 0x1c
push dword [ebp - 0xe0]
push dword [ebp - 0x100]
push dword [ebp - 0xa8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x42a4e1
push str.WinHttpReadData_failed:
lea eax, [ebp - 0x50]
push eax
call fcn.00404c84
mov ecx, dword [ebp - 0xb4]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x22
call fcn.00405528
push ebx
xor edi, edi
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 0x1c
call fcn.00401198
lea eax, [ebp - 0x50]
push eax
call fcn.00420059
pop ecx
mov byte [ebp - 4], 0x23
jmp 0x42a38f
mov esi, dword [ebp - 0xf0]
lea eax, [ebp - 0x100]
call fcn.0040a963
mov eax, dword [ebp - 0xf0]
add dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc8]
mov eax, dword [ecx]
adc dword [ebp - 0xc0], edi
lea edx, [ebp - 0x100]
push edx
call dword [eax + 0x10]
test al, al
jne 0x42a543
push str.Consumers_ConsumeData_failed.
lea eax, [ebp - 0x50]
push eax
call fcn.00404c84
mov byte [ebp - 4], 0x24
mov ecx, dword [ebp - 0xb4]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
call fcn.00405528
jmp 0x42a3a0
xor eax, eax
cmp eax, edi
je 0x42a589
mov esi, dword [ebp - 0xc8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
add eax, dword [ebp - 0xec]
mov ecx, esi
adc edx, dword [ebp - 0xe8]
push edx
push eax
mov eax, dword [esi]
call dword [eax + 4]
add eax, dword [ebp - 0xc4]
adc edx, dword [ebp - 0xc0]
push edx
push eax
xor eax, eax
push eax
call eax
add esp, 0x14
test al, al
je 0x42a3ab
cmp dword [ebp - 0xcc], edi
je 0x42a30b
mov eax, dword [ebp - 0xcc]
push edi
call fcn.00421f30
test al, al
je 0x42a30b
push str.Cancel_event
lea eax, [ebp - 0x50]
push eax
call fcn.00404c84
mov byte [ebp - 4], 0x25
jmp 0x42a52c
push ebx
xor edi, edi
lea esi, [ebp - 0xa4]
call fcn.00401198
lea esi, [ebp - 0xdc]
call fcn.0041a790
cmp dword [ebp - 0xa8], edi
je 0x42a639
push dword [ebp - 0xa8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0xb0], edi
je 0x42a64d
push dword [ebp - 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
xor edi, edi
lea esi, [ebp - 0x6c]
call fcn.00401198
push ebx
lea esi, [ebp - 0x88]
call fcn.00401198
cmp dword [ebp - 0xac], edi
je 0x42a678
push dword [ebp - 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
call fcn.0044db50
ret