Function at 0x4025d0
Capabilities:
Receive http response

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
lea edx, [esp + 0x10]
mov eax, dword [esi + 0x7c]
mov dword [esp + 0x10], ebx
push edi
push edx
mov dword [eax + 8], ebx
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [ecx + 8], ebx
mov eax, dword [esi + 8]
push eax
mov ebp, 1
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4027a6
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4027b0
mov ecx, dword [esi + 0x7c]
mov edx, dword [ecx + 4]
cmp eax, edx
jbe 0x402634
mov eax, edx
mov dword [esp + 0x14], eax
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx]
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4027a6
mov edx, dword [esp + 0x14]
xor eax, eax
cmp edx, ebx
mov dword [esp + 0x24], eax
jbe 0x40276a
mov edx, dword [esi + 0x7c]
mov ecx, dword [edx]
mov al, byte [ecx + eax]
cmp al, 0x3c
jne 0x4026b4
mov eax, dword [esi + 0x80]
mov ecx, dword [eax + 8]
cmp ecx, ebx
jle 0x4026ad
mov edx, dword [eax]
cmp edi, ebx
mov byte [edx + ecx], bl
je 0x4026a4
mov eax, dword [esi + 0x80]
mov ecx, dword [esp + 0x2c]
push ecx
mov edx, dword [eax + 8]
mov eax, dword [eax]
push edx
push eax
push ebp
call edi
add esp, 0x10
cmp eax, 9
je 0x40279c
mov ecx, dword [esi + 0x80]
mov dword [ecx + 8], ebx
xor ebp, ebp
jmp 0x402755
cmp al, 0x3e
jne 0x4026ff
mov eax, dword [esi + 0x80]
mov ecx, dword [eax + 8]
cmp ecx, ebx
jle 0x4026f8
mov edx, dword [eax]
cmp edi, ebx
mov byte [edx + ecx], bl
je 0x4026ef
mov eax, dword [esi + 0x80]
mov ecx, dword [esp + 0x2c]
push ecx
mov edx, dword [eax + 8]
mov eax, dword [eax]
push edx
push eax
push ebp
call edi
add esp, 0x10
cmp eax, 9
je 0x40279c
mov ecx, dword [esi + 0x80]
mov dword [ecx + 8], ebx
mov ebp, 1
jmp 0x402755
mov ecx, dword [esi + 0x80]
mov ebx, dword [ecx + 4]
mov edx, dword [ecx + 8]
dec ebx
cmp edx, ebx
jge 0x402753
xor ebx, ebx
cmp edx, ebx
jle 0x402733
cmp al, 0x20
je 0x402726
cmp al, 9
je 0x402726
cmp al, 0xd
je 0x402726
cmp al, 0xa
jne 0x402743
mov ebx, dword [ecx]
cmp byte [ebx + edx - 1], 0x20
je 0x402753
xor ebx, ebx
jmp 0x402743
cmp al, 0x20
je 0x402755
cmp al, 9
je 0x402755
cmp al, 0xd
je 0x402755
cmp al, 0xa
je 0x402755
mov ecx, dword [ecx]
mov byte [ecx + edx], al
mov eax, dword [esi + 0x80]
inc dword [eax + 8]
jmp 0x402755
xor ebx, ebx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
inc eax
cmp eax, edx
mov dword [esp + 0x24], eax
jb 0x402661
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x64]
add ecx, edx
cmp eax, ebx
mov dword [esp + 0x18], ecx
je 0x402784
mov eax, dword [esi + 0x70]
cmp ecx, eax
jb 0x402784
je 0x4027b0
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4027a6
jmp 0x402618
mov dword [esp + 0x10], 9
jmp 0x4027d0
mov dword [esp + 0x10], 7
jmp 0x4027d0
cmp edi, ebx
je 0x4027d0
mov eax, dword [esi + 0x80]
mov ecx, dword [eax + 8]
cmp ecx, ebx
jle 0x4027d0
mov edx, dword [esp + 0x2c]
mov eax, dword [eax]
push edx
push ecx
push eax
push ebp
call edi
add esp, 0x10
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 8], ebx
push 0x44b910
add esi, 0x2c
call fcn.0040d6da
mov edi, eax
add esp, 4
cmp edi, 0x7ffffffd
jbe 0x4027fc
call fcn.004177c8
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x40282c
mov al, byte [ecx - 1]
cmp al, bl
je 0x40282c
cmp al, 0xff
je 0x40282c
cmp edi, ebx
jne 0x40288f
dec al
pop edi
mov byte [ecx - 1], al
mov eax, dword [esp + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp edi, ebx
jne 0x40287a
cmp ecx, ebx
je 0x402865
mov al, byte [ecx - 1]
cmp al, bl
je 0x402859
cmp al, 0xff
je 0x402859
dec al
pop edi
mov byte [ecx - 1], al
mov eax, dword [esp + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
add ecx, 0xfffffffe
push ecx
call fcn.0041d32e
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esi + 0xc]
cmp eax, 0x1f
ja 0x402886
cmp eax, edi
jae 0x402897
push 1
mov ecx, esi
call fcn.00402d80
push edi
mov ecx, esi
call fcn.00402c70
mov eax, dword [esi + 4]
cmp edi, ebx
mov ecx, 0x44b910
jbe 0x4028b4
mov edx, edi
mov bp, word [ecx]
add ecx, 2
mov word [eax], bp
add eax, 2
dec edx
jne 0x4028a5
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov dword [esi + 8], edi
mov word [edx + edi*2], bx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret