Function at 0x4703be
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58bc33
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x5fe480]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
mov eax, dword [0x5fe480]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x1c], esi
mov edi, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x1a0], esi
cmp dword [edi + 0x20], esi
jne 0x470471
lea eax, [esp + 0x20]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
cmp ebx, eax
je 0x470449
mov esi, ebx
call fcn.004265f2
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov eax, ebx
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.005413de
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov byte [esp + 0x1a0], 1
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x34]
mov edx, ecx
or edx, eax
je 0x4704ac
cmp dword [edi + 0x2c], eax
ja 0x470619
jb 0x4704ac
cmp dword [edi + 0x28], ecx
jae 0x470619
cmp dword [esp + 0x14], esi
je 0x47062a
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x4704cc
push esi
call fcn.00466ce7
test al, al
jne 0x47057d
mov eax, dword [edi + 0x20]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x470596
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x470619
cmp eax, dword [esp + 0x14]
lea eax, [esp + 0x18]
jb 0x470501
lea eax, [esp + 0x14]
mov esi, dword [eax]
lea eax, [esp + 0x34]
mov dword [esp + 0x18], esi
call fcn.00461d13
mov eax, dword [edi + 0x20]
and dword [esp + 0x1c], 0
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x1c]
push dword [esp + 0x3c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x470685
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x34]
call fcn.00461d13
mov eax, dword [esp + 0x1c]
add dword [edi + 0x28], eax
adc dword [edi + 0x2c], 0
cmp dword [esp + 0x14], eax
jae 0x470559
and dword [esp + 0x14], 0
jmp 0x47055d
sub dword [esp + 0x14], eax
push dword [esp + 0x30]
lea ecx, [esp + 0x24]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x30]
call fcn.00433a8f
xor esi, esi
jmp 0x47048c
lea ebx, [esp + 0xfc]
call fcn.00472cff
push 0x5db1c8
mov eax, ebx
push eax
call fcn.0054af69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esp + 0x44]
push eax
call fcn.004044d0
mov ebx, eax
push str.WinHttpQueryDataAvailable_failed_with
push ebx
mov byte [esp + 0x1a8], 2
call fcn.0040511f
pop ecx
pop ecx
push edi
push ebx
call fcn.00409937
lea eax, [esp + 0xe0]
push eax
mov eax, ebx
call fcn.0040453a
mov byte [esp + 0x1a0], 3
cmp edi, esi
jle 0x4705ed
and edi, 0xffff
or edi, 0x80070000
push 0x23d
push edi
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0046f13c
push 0x5db18c
lea eax, [esp + 0x100]
jmp 0x470590
mov eax, dword [edi + 0x20]
cmp eax, esi
je 0x470627
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [edi + 0x20], esi
lea eax, [esp + 0x20]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
cmp ebx, eax
je 0x47065c
mov esi, ebx
call fcn.004265f2
mov eax, dword [esp + 0x20]
and dword [esp + 0x20], 0
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], eax
xor esi, esi
cmp dword [esp + 0x34], esi
je 0x47066c
push dword [esp + 0x34]
call fcn.00542025
pop ecx
cmp dword [esp + 0x20], esi
je 0x470449
push dword [esp + 0x20]
call fcn.00542025
pop ecx
jmp 0x470449
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x44]
push eax
call fcn.004044d0
mov edi, eax
push str.WinHttpReadData_failed_with
push edi
mov byte [esp + 0x1a8], 4
call fcn.0040511f
pop ecx
pop ecx
push esi
push edi
call fcn.00409937
lea eax, [esp + 0xe0]
push eax
mov eax, edi
call fcn.0040453a
mov byte [esp + 0x1a0], 5
test esi, esi
jle 0x4706dc
and esi, 0xffff
or esi, 0x80070000
push 0x25b
push esi
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x108]
push eax
call fcn.0046f13c
push 0x5db18c
lea eax, [esp + 0x100]
jmp 0x470590