Function at 0x41b850
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x477cb0]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
call fcn.0040d728
xor eax, eax
cmp si, ax
mov dword [esp + 0x1c], eax
je 0x41ba10
cmp si, 1
je 0x41ba10
cmp si, 0xd
je 0x41b8ca
lea eax, [esp + 0x10]
push eax
call fcn.0040d702
mov eax, 0x80004001
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0043917f
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebx + 0x84]
push ecx
call fcn.0041e220
test al, al
je 0x41b903
lea eax, [esp + 0xc]
push eax
call fcn.00412642
mov ecx, dword [edi]
mov eax, dword [ecx]
lea edx, [esp + 0xc]
push edx
push 0x467e9c
push edi
call eax
test eax, eax
jge 0x41b926
lea ecx, [esp + 0xc]
push ecx
call fcn.00417d30
lea edx, [esp + 0x10]
push edx
call fcn.0040d702
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0043917f
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
test eax, eax
jl 0x41baac
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov edx, ecx
or edx, eax
je 0x41baac
test eax, eax
ja 0x41baac
jb 0x41b966
cmp ecx, 0xffffffff
jae 0x41baac
lea eax, [esp + 0x10]
push eax
call fcn.0041ce10
test al, al
jne 0x41b9a1
lea ecx, [esp + 0xc]
push ecx
call fcn.00417d30
lea edx, [esp + 0x10]
push edx
call fcn.0040d702
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0043917f
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [esp + 0xc]
mov esi, dword [edx]
xor ecx, ecx
lea edi, [esp + 0x20]
push edi
push ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esi + 0x14]
push edx
call eax
test eax, eax
jl 0x41ba7f
mov ecx, dword [esp + 0x20]
or ecx, dword [esp + 0x24]
jne 0x41ba7f
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push eax
call edx
test eax, eax
jl 0x41b8f9
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x38], eax
jne 0x41b8f9
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
push eax
call fcn.00417d30
xor eax, eax
mov edx, dword [0x47cc7c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x47cc7c
call eax
mov edi, eax
add edi, 0x10
cmp dword [ebx + 0x44], 0
mov dword [esp + 0xc], edi
je 0x41bb66
mov edx, dword [ebx + 0x48]
xor eax, eax
test edx, edx
jbe 0x41ba63
mov esi, dword [ebx + 0x40]
mov ecx, esi
lea esp, [esp]
cmp dword [ecx], 0
jne 0x41bad9
add eax, 1
add ecx, 4
cmp eax, edx
jb 0x41ba50
xor eax, eax
test eax, eax
mov esi, eax
je 0x41bb41
nop
test esi, esi
mov edx, esi
mov dword [esp + 0x20], edx
jne 0x41bade
jmp 0x41bb11
lea eax, [esp + 0xc]
push eax
call fcn.00417d30
lea ecx, [esp + 0x10]
push ecx
call fcn.0040d702
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0043917f
mov esp, ebp
pop ebp
ret 0x14
lea edx, [esp + 0xc]
push edx
call fcn.00417d30
lea eax, [esp + 0x10]
push eax
call fcn.0040d702
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0043917f
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi + eax*4]
jmp 0x41ba65
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x41bb0f
mov edi, dword [ebx + 0x48]
mov eax, dword [esi + 0xc]
xor edx, edx
div edi
add edx, 1
cmp edx, edi
jae 0x41bb0b
mov eax, dword [ebx + 0x40]
cmp dword [eax + edx*4], 0
lea eax, [eax + edx*4]
je 0x41bb04
mov ecx, dword [eax]
add edx, 1
test ecx, ecx
je 0x41baf2
mov edx, dword [esp + 0x20]
mov esi, ecx
mov eax, dword [edx]
cmp dword [eax - 0xc], 0
je 0x41bb35
mov ecx, dword [edx + 4]
cmp dword [ecx - 0xc], 0
je 0x41bb35
push ecx
push eax
push str._s:__s_r_n
lea edi, [esp + 0x18]
call fcn.0041ce40
add esp, 0xc
test esi, esi
jne 0x41ba70
mov edi, dword [esp + 0xc]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x41bb66
cmp dword [edi - 4], 1
mov dword [esp + 0x18], eax
jle 0x41bb62
mov ecx, eax
push ecx
lea ecx, [esp + 0x10]
call fcn.0040186c
mov edi, dword [esp + 0xc]
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x80]
push 0
push eax
push eax
neg eax
sbb eax, eax
and eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x41bbd5
call fcn.004030e7
mov esi, eax
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41bbb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040d702
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0043917f
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebx + 0x80]
push 0
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x41bc01
call fcn.004030e7
mov esi, eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41bba9
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41bc1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040d702
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0043917f
mov esp, ebp
pop ebp
ret 0x14